Sha256: a4a73eb0bcf63cbc3814499e5f7258c37880f09f52059898b27e2e8d5218bd53
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
describe Moneta::Api::HTTPException do let(:message) { 'Server Error' } let(:exception) { described_class.new(message) } describe '.to_hash' do subject { exception.to_hash } its(:length) { is_expected.to eq 1 } its([:message]) { is_expected.to eq message } end describe '.inspect' do subject { exception } its(:inspect) { is_expected.to eq 'HTTPException: Server Error' } end end
Version data entries
4 entries across 4 versions & 1 rubygems