describe API::V2::Management::Exceptions::Base do it do expect(API::V2::Management::Exceptions::Base.new(message: 'Wrong argument.').inspect).to eq \ '#' expect(API::V2::Management::Exceptions::Base.new(message: 'Wrong argument.', debug_message: 'Debug message.').inspect).to eq \ '#' end end