Initial commit
This commit is contained in:
8
spec/api/v2/management/error_spec.rb
Normal file
8
spec/api/v2/management/error_spec.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
describe API::V2::Management::Exceptions::Base do
|
||||
it do
|
||||
expect(API::V2::Management::Exceptions::Base.new(message: 'Wrong argument.').inspect).to eq \
|
||||
'#<API::V2::Management::Exceptions::Base: Wrong argument.>'
|
||||
expect(API::V2::Management::Exceptions::Base.new(message: 'Wrong argument.', debug_message: 'Debug message.').inspect).to eq \
|
||||
'#<API::V2::Management::Exceptions::Base: Wrong argument. (Debug message.)>'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user