refactor: financial transaction spec
This commit is contained in:
parent
1c5a3c6864
commit
a32bc88298
2 changed files with 8 additions and 22 deletions
|
|
@ -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' }
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue