-
Notifications
You must be signed in to change notification settings - Fork 16
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
Tests are failing after first rspec run #13
Comments
I'm having the same problem. Using jruby 1.6.7.2 in 1.9 mode doing jruby -S bundle exec guard |
Me too. |
I get this problem too using jruby 1.6.7.2 in 1.9 mode. There also seems to be a conflict with DatabaseCleaner, because on my second run (not my first), I also got errors about non-unique attributes when I created the same kind of object in subsequent tests. My DatabaseCleaner set up looks like this: Rspec.configure do |config|
config.use_transactional_fixtures = false
config.before :each do
if Capybara.current_driver == :rack_test
DatabaseCleaner.strategy = :transaction
else
DatabaseCleaner.strategy = :truncation
end
DatabaseCleaner.start
end
config.after :each do
DatabaseCleaner.clean
end
end |
Same here. I've just updated to jruby 1.6.8, running in 1.9 mode. Had the same problems with jruby 1.6.7.2 as described above (including the DatabaseCleaner strategy). |
I think I'm seeing the same issue. For me, it stems from the fact that my RSpec.configure block (from spec_helper) isn't being called between tests, since my spec file uses Since we only load the changed files (per
load for spec_helper. But of course that's no fun. :)
Can anyone else confirm using @jkutner Is this something you ran into, and why there are stubs for |
My rspec tests are failing after first rspec run.
Color output is disabled after first run as well.
Tried with master just a second ago.
I get errors like the following for
get
andvisit
methods inside my tests:I also get different output for test descriptions:
On other application in the second run I get the following error for VCR:
It looks like rspec doesn't recognize macros added by other gems.
The text was updated successfully, but these errors were encountered: