Sha256: 5d9cdbbfd02e77e3f5dac5bdd37c9de1b39965d0a16e38dcaf39a510c32ea16f

Contents?: true

Size: 276 Bytes

Versions: 58

Compression:

Stored size: 276 Bytes

Contents

require 'spec_helper'

module Pact
   describe ServiceConsumer do
      describe "as_json" do
         it "returns a hash representation of the object" do
            expect(ServiceConsumer.new(:name => "Bob").as_json).to eq :name => "Bob"
         end
      end
   end
end   

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
pact-1.1.0.rc2 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.38 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.1.0.rc1 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.37 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.36 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.35 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.34 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.33 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.32 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.31 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.30 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.29 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.28 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.27 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.26 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.25 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.24 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.23 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.22 spec/lib/pact/consumer/service_consumer_spec.rb
pact-1.0.21 spec/lib/pact/consumer/service_consumer_spec.rb