#215 テスト・ケース追加

This commit is contained in:
2026-01-12 17:49:20 +09:00
parent 74057cbce9
commit 8b55139f38
16 changed files with 170 additions and 7 deletions
+11
View File
@@ -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
View File
@@ -0,0 +1,5 @@
module JsonHelper
def json
JSON.parse(response.body)
end
end