Sha256: e6f51900e1f934075bfb2081d6b225525b18d3116396166d32fbb5e265c51762
Contents?: true
Size: 979 Bytes
Versions: 9
Compression:
Stored size: 979 Bytes
Contents
require 'spec_helper' load 'pact/provider/world.rb' describe Pact do describe ".provider_world" do it "returns a world" do expect(Pact.provider_world).to be_instance_of Pact::Provider::World end it "returns the same world each time" do expect(Pact.provider_world).to be Pact.provider_world end end describe ".clear_provider_world" do it "clears the world" do original_world = Pact.provider_world Pact.clear_provider_world expect(original_world).to_not be Pact.provider_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 State::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
9 entries across 9 versions & 1 rubygems