lib/bogus/verifies_contracts.rb in bogus-0.0.2 vs lib/bogus/verifies_contracts.rb in bogus-0.0.3.rc.1

- old
+ new

@@ -5,8 +5,12 @@ def verify(fake_name) missed = doubled_interactions.for_fake(fake_name).reject do |interaction| real_interactions.recorded?(fake_name, interaction) end - raise Bogus::ContractNotFulfilled.new(fake_name => missed) unless missed.empty? + + unless missed.empty? + actual = real_interactions.for_fake(fake_name) + raise Bogus::ContractNotFulfilled.new(fake_name, missed: missed, actual: actual) + end end end