-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
rake cucumber
fails on new rails 4 project with both rspec and cucumber
#792
Comments
This is because the latest version of I think the require changed it's behaviour, so if it's rspec requiring the latest version of minitest we need to change that require or lock the minitest version. |
From a straight up clone of your demo, |
Just to summarise the conversation with @JonRowe on Twitter ... It's definitely minitest 4.7.5 that's being activated here (I removed minitest 5.0.6 entirely, just to make sure). It occurs if I invoke rake via Seeing as it's a new project, I'm using Ruby 2.0.0-p247. However, I'm still getting the same failure with 1.9.3-p448. It does start working if I disable ActiveRecord entirely, as in mathie/broken_cucumber_demo@598eac09091e867b681c04b0cc3f6e3155d7b35a. |
Interesting... Thats what I did to avoid setting up a db. (I'm also on Ruby 2) |
This isn't an RSpec issue, I've described this in more detail in cucumber/cucumber-rails#253 but the problem is that minitest autorun has been kicked in by cucumber. If you look at the output both suites run successfully then minitest blows up afterwards. |
I get that behavior with ruby 2.0.0-p247, rails 4.0.1, rspec-rails (2.14.0) without cucumber. Minitest version in bundle is 4.7.5 |
Please make sure you don't have another gem requiring |
If this is definitely not rspec-rails that does the "offending" require, can someone give me a hint on how to trace where the require might come from (apart from reviewing the source code of all gems in a current rails application). I get a very similar stack trace as above, with only Test::Unit and minitest in it. |
Nevermind, found it myself. It was the turn gem that was left over in my Gemfile |
Just getting started on a new project – my first attempt with Rails 4 – and I've run into a minor snag. I've generated a demo project to show it off here: mathie/broken_cucumber_demo. Having installed and generated cucumber at mathie/broken_cucumber_demo@7474454, running
rake
orrake cucumber
works fine.However, after installing and generating rspec (in mathie/broken_cucumber_demo@c208712a149059c260bcdbe48ef204d0f42178e1), running
rake cucumber
results in:The backtrace suggests some autorun shenanigans, so I tried commenting out
require 'rspec/autorun'
from the spec helper, but that doesn't seem to have helped.I've reported this issue to cucumber/cucumber-rails#253 too, but I suspect it's more likely to be rspec...
Any thoughts?
The text was updated successfully, but these errors were encountered: