diff options
Diffstat (limited to 'spec/services/service_response_spec.rb')
-rw-r--r-- | spec/services/service_response_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/services/service_response_spec.rb b/spec/services/service_response_spec.rb index 03fcc11b6bd..18c27fb6979 100644 --- a/spec/services/service_response_spec.rb +++ b/spec/services/service_response_spec.rb @@ -59,8 +59,7 @@ RSpec.describe ServiceResponse, feature_category: :shared do end it 'creates an error response with payload' do - response = described_class.error(message: 'Bad apple', - payload: { bad: 'apple' }) + response = described_class.error(message: 'Bad apple', payload: { bad: 'apple' }) expect(response).to be_error expect(response.message).to eq('Bad apple') @@ -68,8 +67,7 @@ RSpec.describe ServiceResponse, feature_category: :shared do end it 'creates an error response with a reason' do - response = described_class.error(message: 'Bad apple', - reason: :permission_denied) + response = described_class.error(message: 'Bad apple', reason: :permission_denied) expect(response).to be_error expect(response.message).to eq('Bad apple') |