Sha256: 710c6dd96717ba9497fef51a4683985a702331b3d3709b88056e738f302c67b4
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basquiat-1.3.2 | spec/lib/adapters/base_message_spec.rb |
basquiat-1.3.1 | spec/lib/adapters/base_message_spec.rb |
basquiat-1.3.0 | spec/lib/adapters/base_message_spec.rb |