#215 テスト・ケース追加

このコミットが含まれているのは:
2026-01-12 17:49:20 +09:00
コミット 8b55139f38
16個のファイルの変更170行の追加7行の削除
+11
ファイルの表示
@@ -0,0 +1,11 @@
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
+5
ファイルの表示
@@ -0,0 +1,5 @@
module JsonHelper
def json
JSON.parse(response.body)
end
end