spec/bogus/contracts/verifies_contracts_spec.rb in bogus-0.1.4 vs spec/bogus/contracts/verifies_contracts_spec.rb in bogus-0.1.5
- old
+ new
@@ -35,12 +35,12 @@
def expect_verify_to_raise_error_with_interactions(name, missed, real)
verifies_contracts.verify(name)
fail
rescue Bogus::ContractNotFulfilled => contract_error
- contract_error.fake_name.should == name
- contract_error.missed_interactions.should == missed
- contract_error.actual_interactions.should == real
+ expect(contract_error.fake_name).to eq name
+ expect(contract_error.missed_interactions).to eq missed
+ expect(contract_error.actual_interactions).to eq real
end
def interaction(method)
Bogus::Interaction.new(method, [:foo, :bar]) { "return value" }
end