lib/mspec/expectations/expectations.rb in mspec-1.2.0 vs lib/mspec/expectations/expectations.rb in mspec-1.3.0
- old
+ new
@@ -1,5 +1,10 @@
class ExpectationNotMetError < StandardError; end
+class ExpectationNotFoundError < StandardError
+ def message
+ "No behavior expectation was found in the example"
+ end
+end
class Expectation
def self.fail_with(expected, actual)
if expected.to_s.size + actual.to_s.size > 80
message = expected.to_s.chomp + "\n" + actual.to_s