Sha256: aa559b7086445240d0c3446d5105d4cbcdbd2314c3f919e3bbd5e2110db212b5

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require 'spec_helper'

describe Basquiat::Adapters::BaseMessage do
  subject(:message) { Basquiat::Adapters::BaseMessage.new({ data: 'everything is AWESOME!' }.to_json) }

  it 'delegates calls to the JSON' do
    expect(message.fetch(:data)).to eq('everything is AWESOME!')
    expect { message.fetch(:error) }.to raise_error KeyError
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basquiat-1.3.0.pre.1 spec/lib/adapters/base_message_spec.rb