Sha256: 016165a18833ebb1f742c26493b631d2d14deb7f9beacea5ae00c25a898b160f

Contents?: true

Size: 720 Bytes

Versions: 8

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'
require 'pact/provider/world'

describe Pact do
  describe ".world" do
    it "returns a world" do
      expect(Pact.world).to be_instance_of Pact::Provider::World
    end
    it "returns the same world each time" do
      expect(Pact.world).to be Pact.world
    end
  end

end

module Pact
  module Provider
    describe World do

      subject { World.new }
      describe "provider_states" do
        it "returns a provider state proxy" do
          expect(subject.provider_states).to be_instance_of ProviderStateProxy
        end
        it "returns the same object each time" do
          expect(subject.provider_states).to be subject.provider_states
        end

      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact-1.0.34 spec/lib/pact/provider/world_spec.rb
pact-1.0.33 spec/lib/pact/provider/world_spec.rb
pact-1.0.32 spec/lib/pact/provider/world_spec.rb
pact-1.0.31 spec/lib/pact/provider/world_spec.rb
pact-1.0.30 spec/lib/pact/provider/world_spec.rb
pact-1.0.29 spec/lib/pact/provider/world_spec.rb
pact-1.0.28 spec/lib/pact/provider/world_spec.rb
pact-1.0.27 spec/lib/pact/provider/world_spec.rb