Sha256: 90f072d63b6f44d60605e6aafbdf0f3dbf5f876a1c8edbfca6787212518c8e38
Contents?: true
Size: 675 Bytes
Versions: 10
Compression:
Stored size: 675 Bytes
Contents
require 'fake_sqs/message' describe FakeSQS::Message do describe "#body" do it "is extracted from the MessageBody" do message = create_message("MessageBody" => "abc") message.body.should eq "abc" end end describe "#md5" do it "is calculated from body" do message = create_message("MessageBody" => "abc") message.md5.should eq "900150983cd24fb0d6963f7d28e17f72" end end describe "#id" do it "is generated" do message = create_message message.id.should have(36).characters end end def create_message(options = {}) FakeSQS::Message.new({"MessageBody" => "test"}.merge(options)) end end
Version data entries
10 entries across 10 versions & 1 rubygems