Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

11/30/12: I still believe in your mustache, McGinley


mock.as_null_object doesn’t do what it says it does

The comments in the implementation suggest that it will respond to every message that isn’t explicitly stubbed with self, but there are some exceptions. Ones we found:

  • nil? # returns false
  • class? # returns RSpec::Mocks::Mock
  • present? # returns false, since blank? returns self, and !self is false

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *