fa2030f9a5
Merge branch 'main' into feature/215 #215 ニコニコ同期テスト #215 テスト・ケース追加 #215 テスト・ケース追加 #215 テスト・ケース追加 #215 テスト・ケース追加 Merge remote-tracking branch 'origin/main' into feature/215 Merge branch 'main' into feature/215 #215 #215 Merge remote-tracking branch 'origin/main' into feature/215 #215 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #219
12 lines
270 B
Ruby
12 lines
270 B
Ruby
module AuthHelper
|
|
def sign_in_as(user)
|
|
allow_any_instance_of(ApplicationController)
|
|
.to receive(:current_user).and_return(user)
|
|
end
|
|
|
|
def sign_out
|
|
allow_any_instance_of(ApplicationController)
|
|
.to receive(:current_user).and_return(nil)
|
|
end
|
|
end
|