summaryrefslogtreecommitdiff
path: root/spec/requests/sessions_controller
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/sessions_controller')
-rw-r--r--spec/requests/sessions_controller/create_sessions_controller_spec.rb (renamed from spec/requests/sessions_controller/post_sessions_controller_spec.rb)4
-rw-r--r--spec/requests/sessions_controller/destroy_sessions_controller_spec.rb (renamed from spec/requests/sessions_controller/delete_sessions_controller_spec.rb)0
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/sessions_controller/post_sessions_controller_spec.rb b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
index c67b14d..69b7b42 100644
--- a/spec/requests/sessions_controller/post_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe 'POST /api/login', type: :request do
let(:desired_error_status) { 401 }
let(:expected_text) { %w[token refresh] }
let(:user) { create(:user_account) }
- let(:params) { { email: user.email, password: user.password } }
- let(:wrong_params) { { email: user.email, password: 'wrong_password' } }
+ let(:params) { JSON.generate({ email: user.email, password: user.password }) }
+ let(:wrong_params) { JSON.generate({ email: user.email, password: 'wrong_password' }) }
end
end
diff --git a/spec/requests/sessions_controller/delete_sessions_controller_spec.rb b/spec/requests/sessions_controller/destroy_sessions_controller_spec.rb
index bc669fc..bc669fc 100644
--- a/spec/requests/sessions_controller/delete_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/destroy_sessions_controller_spec.rb