mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Update spec name
This commit is contained in:
parent
dd31563653
commit
662d819f47
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ RSpec.describe 'Api::V1::Subscriptions', type: :request do
|
||||||
JWT.encode({ user_id: 'invalid', status: nil }, jwt_secret, 'HS256')
|
JWT.encode({ user_id: 'invalid', status: nil }, jwt_secret, 'HS256')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns unprocessable_entity error with invalid data message' do
|
it 'returns unprocessable_content error with invalid data message' do
|
||||||
allow(Subscription::DecodeJwtToken).to receive(:new).with(token)
|
allow(Subscription::DecodeJwtToken).to receive(:new).with(token)
|
||||||
.and_raise(ArgumentError.new('Invalid token data'))
|
.and_raise(ArgumentError.new('Invalid token data'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue