Skip to content

Commit

Permalink
removing the Spanish Inquisition special case :(
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishr committed Feb 17, 2020
1 parent cc91b87 commit 9c9bc70
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/mocha/object_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c9bc70

Please sign in to comment.