Sha256: 59f726c0a3cdec3819c65465b3bd41ef017272aa211ee66ff4eb65e2ab21db06
Contents?: true
Size: 616 Bytes
Versions: 17
Compression:
Stored size: 616 Bytes
Contents
describe Moneta::Api::RuntimeException do let(:message) { 'error' } let(:code) { 'SOAP-ENV:Client' } let(:detail) { { foo: ['bar'] } } let(:exception) do described_class.new(message).tap do |e| e.code = code e.detail = detail end end describe '.to_hash' do subject { exception.to_hash } its([:message]) { is_expected.to eq message } its([:code]) { is_expected.to eq code } its([:detail]) { is_expected.to eq detail } end describe '.inspect' do subject { exception } its(:inspect) { is_expected.to eq "SOAP-ENV:Client: error#{ $/ }foo: bar" } end end
Version data entries
17 entries across 17 versions & 1 rubygems