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

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/http_exception_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/http_exception_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/http_exception_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/http_exception_spec.rb