Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

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

Arjun Sharma
Friday, November 30, 2012

Interestings

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
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Arjun Sharma

Arjun Sharma
San Francisco

Recent Posts

  • 11/27/12: T-1 Day Until Mohawkvember
Subscribe to Arjun's Feed

Author Topics

agile (2)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >