Sha256: 1da95e09fca12836498eba46c61fab55c292ca4d6847e9d6556473efe4e0ca55
Contents?: true
Size: 781 Bytes
Versions: 1
Compression:
Stored size: 781 Bytes
Contents
# I'm not sure whether to make Pact::Message a module or a class at this stage, so making # the "public interface" to the pact-support library support Pact::Message.new either way module Pact module Message; end end load 'pact/consumer_contract/message.rb' load 'pact/consumer_contract/message/content.rb' describe Pact::Message::Content do describe "new" do it "returns an instance of Pact::Message::ConsumerContract::Message::Content" do expect(Pact::Message::Content.new('foo')).to be_a(Pact::ConsumerContract::Message::Content) end end end describe Pact::Message do describe "new" do it "returns an instance of Pact::Message::ConsumerContract::Message" do expect(Pact::Message.new).to be_a(Pact::ConsumerContract::Message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact-support-1.3.0.alpha.1 | spec/lib/pact/consumer_contract/message_spec_with_message_module.rb |