Sha256: bac7b4268230036783ec236da2a32995bc1a21c3786ed9d006926d41ac1f750e
Contents?: true
Size: 907 Bytes
Versions: 12
Compression:
Stored size: 907 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 describe ".clear_world" do it "clears the world" do original_world = Pact.world Pact.clear_world expect(original_world).to_not 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 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
12 entries across 12 versions & 1 rubygems