-
-
Save itspriddle/2210095 to your computer and use it in GitHub Desktop.
Demonstrates unexpected behavior from .any_instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec/mocks' | |
describe Object do | |
it "should not care how many times a stubbed method is called" do | |
Object.should_receive(:some_method).any_number_of_times | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment