Skip to content

Instantly share code, notes, and snippets.

@joshuawscott
Created August 1, 2013 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joshuawscott/6131699 to your computer and use it in GitHub Desktop.
Save joshuawscott/6131699 to your computer and use it in GitHub Desktop.
checking for rspec typo
module RSpec
module Mocks
module AnyInstance
class Recorder
def should_recieve(*args)
raise NoMethodError.new "should_recieve: Did you mean 'should_receive' ?"
end
def should_not_recieve(*args)
raise NoMethodError.new "should_not_receive: Did you mean 'should_not_receive' ?"
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment