Sha256: efcbafac9e2fffff711ec790348dd1cc03b1781556e0b6934f0d57e6944e02f0
Contents?: true
Size: 360 Bytes
Versions: 8
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true RSpec.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
8 entries across 8 versions & 1 rubygems