diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:58:25 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:58:25 -0600 |
commit | 898d91cca5721db785e991e0eab9f05010925b1a (patch) | |
tree | 46f8733de6fffabdd92c152308d0aee27f2d2d8e /spec/requests | |
parent | e3b19598c75790758995f9db206427135d6851c2 (diff) |
Reacomoda directorio de specs
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 |