diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-14 20:20:43 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-14 20:20:43 -0600 |
commit | f1a92818bb0fc65c57c5dc30f06f4870c185ebaa (patch) | |
tree | ed5b1f30146ed03787bc96c7a89d2e4eaa824438 /spec/requests/user_accounts_controller/show_user_accounts_spec.rb | |
parent | 8c847a682109e8305ff1ac14cd493255884d8675 (diff) |
Arregla specs misceláneos
Diffstat (limited to 'spec/requests/user_accounts_controller/show_user_accounts_spec.rb')
-rw-r--r-- | spec/requests/user_accounts_controller/show_user_accounts_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/user_accounts_controller/show_user_accounts_spec.rb b/spec/requests/user_accounts_controller/show_user_accounts_spec.rb index f79802a..050fda0 100644 --- a/spec/requests/user_accounts_controller/show_user_accounts_spec.rb +++ b/spec/requests/user_accounts_controller/show_user_accounts_spec.rb @@ -4,7 +4,7 @@ RSpec.describe 'GET /api/account', type: :request do let(:user) { create(:user_account) } let(:token) { jwt(user) } - it_behaves_like 'a GET request' do + it_behaves_like 'a GET resource request', sole_route: true do let(:headers) { { 'Authorization' => "Bearer #{token['token']}"} } let(:route) { '/api/account' } let(:expected_text) { [user.email, user.first_name, user.last_name, user.role] } |