refactor: financial transaction spec

This commit is contained in:
Philipp Rothmann 2022-12-12 12:59:06 +01:00
parent 1c5a3c6864
commit a32bc88298
2 changed files with 8 additions and 22 deletions

View file

@ -30,7 +30,7 @@ module ApiHelper
end
end
def self.it_handles_invalid_scope(description = "missing scope")
def self.it_handles_invalid_scope(description = 'missing scope')
context 'with invalid scope' do
let(:api_scopes) { ['none'] }
@ -41,7 +41,7 @@ module ApiHelper
end
end
def self.it_handles_invalid_scope_with_id(class_sym, description)
def self.it_handles_invalid_scope_with_id(class_sym, description = 'missing scope')
context 'with invalid scope' do
let(:api_scopes) { ['none'] }
let(:id) { create(class_sym).id }
@ -53,7 +53,7 @@ module ApiHelper
end
end
def self.it_cannot_find_object(description = "not found")
def self.it_cannot_find_object(description = 'not found')
let(:id) { 'invalid' }