summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/refresh_tokens_controller/post_refresh_tokens_controller_spec.rb (renamed from spec/requests/post_refresh_tokens_spec.rb)0
-rw-r--r--spec/requests/sessions_controller/post_sessions_controller_spec.rb (renamed from spec/requests/authentications_spec.rb)4
-rw-r--r--spec/requests/user_accounts_controller/post_user_accounts_spec.rb (renamed from spec/requests/post_user_accounts_spec.rb)0
3 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/post_refresh_tokens_spec.rb b/spec/requests/refresh_tokens_controller/post_refresh_tokens_controller_spec.rb
index 5d8f8f0..5d8f8f0 100644
--- a/spec/requests/post_refresh_tokens_spec.rb
+++ b/spec/requests/refresh_tokens_controller/post_refresh_tokens_controller_spec.rb
diff --git a/spec/requests/authentications_spec.rb b/spec/requests/sessions_controller/post_sessions_controller_spec.rb
index 6b33402..31cef31 100644
--- a/spec/requests/authentications_spec.rb
+++ b/spec/requests/sessions_controller/post_sessions_controller_spec.rb
@@ -2,10 +2,10 @@
require 'rails_helper'
-RSpec.describe 'POST /api/authenticate', type: :request do
+RSpec.describe 'POST /api/login', type: :request do
it_behaves_like 'a POST request' do
let(:headers) { { 'CONTENT_TYPE' => 'application/json' } }
- let(:route) { '/api/authenticate' }
+ let(:route) { '/api/login' }
let(:expected_error_messages) { ['Credenciales incorrectas'] }
let(:desired_error_status) { 401 }
let(:expected_text) { %w[token refresh] }
diff --git a/spec/requests/post_user_accounts_spec.rb b/spec/requests/user_accounts_controller/post_user_accounts_spec.rb
index 7c5aacc..7c5aacc 100644
--- a/spec/requests/post_user_accounts_spec.rb
+++ b/spec/requests/user_accounts_controller/post_user_accounts_spec.rb