-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should fail at_least_once #24
Comments
Hi Alexander, How are you requiring rspec? It looks to me as if the mocha teardown hook is not being fired. This might be a load order issue or it might be a problem with rspec in Ruby 1.9.2. I don't know much about rspec, but the following code works for me in Ruby 1.9.2 :-
Here's what happens when I run it as a standalone file :-
Regards, James. |
Can you give me your equivalent standalone file i.e. including all |
I just run this file from command line. RSpec.configure do |config| config.mock_with :mocha end it solves. Copied it from a Rails site. |
Ok. I still don't see how you are loading rspec itself, but I'm glad you've solved your problem. I'm going to mark this as closed. I hope that's ok. |
I type: # rspec ./at_spec.rb and it runs. No framework, no includes. Thanks anyway. I agree to close issue. |
Why do these tests pass? It is taken from documentation.
rspec 2.5.1, mocha 0.9.12, ruby 1.9.2-p136
The text was updated successfully, but these errors were encountered: