summaryrefslogtreecommitdiff
path: root/spec/requests/sessions_controller/create_sessions_controller_spec.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-30 17:29:40 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-30 17:29:40 -0600
commit2ae0cd8a8dc6d630ee1a7a84ddf6111609dbdeb7 (patch)
treebbcaadbea3da32ee974d28cfb37c1af4be018215 /spec/requests/sessions_controller/create_sessions_controller_spec.rb
parentefc5eb10894fc95487c55628b94024e97cd60139 (diff)
Mejora la estructura de los specs
Diffstat (limited to 'spec/requests/sessions_controller/create_sessions_controller_spec.rb')
-rw-r--r--spec/requests/sessions_controller/create_sessions_controller_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/requests/sessions_controller/create_sessions_controller_spec.rb b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
deleted file mode 100644
index cca04b1..0000000
--- a/spec/requests/sessions_controller/create_sessions_controller_spec.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# frozen_string_literal: true
-
-require 'rails_helper'
-
-RSpec.describe 'POST /api/login', type: :request do
- it_behaves_like 'a POST request' do
- let(:headers) { {} }
- let(:route) { '/api/login' }
- let(:expected_error_messages) { ['Credenciales incorrectas'] }
- 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' } }
- end
-end