From 9c9bc7021ab8c01c4dc2c0278047b61aedad0c06 Mon Sep 17 00:00:00 2001 From: Nitish Rathi Date: Mon, 17 Feb 2020 17:53:42 +0000 Subject: [PATCH] removing the Spanish Inquisition special case :( --- lib/mocha/object_methods.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/mocha/object_methods.rb b/lib/mocha/object_methods.rb index 4e4e59673..f91894f5f 100644 --- a/lib/mocha/object_methods.rb +++ b/lib/mocha/object_methods.rb @@ -69,9 +69,6 @@ def stubba_class # # @see Mock#expects def expects(expected_methods_vs_return_values) - if expected_methods_vs_return_values.to_s =~ /the[^a-z]*spanish[^a-z]*inquisition/i - raise ExpectationErrorFactory.build('NOBODY EXPECTS THE SPANISH INQUISITION!') - end if frozen? raise StubbingError.new("can't stub method on frozen object: #{mocha_inspect}", caller) end