Sha256: 827a55b0cdfb95e838e29b38eae7ab4669421e96ad09237dd389e7c66de84fcc
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require "spec_helper" describe Qsagi::Message do describe "delivery_tag" do it "returns the delivery_tag" do delivery_details = OpenStruct.new(:delivery_tag => "tag") expect(Qsagi::Message.new(delivery_details, :parsed_payload).delivery_tag).to eq("tag") end end describe "exchange" do it "returns the exchange" do delivery_details = OpenStruct.new(:exchange => "the_exchange") expect(Qsagi::Message.new(delivery_details, :parsed_payload).exchange).to eq("the_exchange") end end describe "payload" do it "returns the parsed payload" do expect(Qsagi::Message.new(:deliver_details, :parsed_payload).payload).to eq(:parsed_payload) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qsagi-0.2.3 | spec/qsagi/message_spec.rb |