-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Rails 4: Cannot use '--format progess' when class is named 'Progress' #251
Comments
I think this should be fixed by Cucumber 1.3.5, which I just released. Can you please try it? |
Actually that may be bollocks but please try anyway! :) |
@mattwynne just tried it and still gives an error:
and the runtime dependency for cucumber is >= 1.3.8 |
I've done some investigation today. It seems that Rails 4 changes the behaviour of We've been relying on the behaviour of these methods to automatically require the formatter only where necessary. I guess we'll have to change this. @tooky something to think about for 2.0 as we change the way formatters get loaded, eh? The workaround is to include this line somewhere in
@chrisroos thanks for logging this and making the test repo - that really helped me to investigate it. Mind if we close this now? |
I've just had a little play and can see that adding I'm more than happy for you to close the issue, @mattwynne. |
* CHANGELOG update for monorepo [#251](cucumber/common#251)
This looks similar to cucumber issue 345[1] and has re-appeared after upgrading our Rails 3.2 app to Rails 4 (i.e. this works fine against Rails 3.2).
I'm adding this issue against cucumber-rails even though I have tracked the problem down to the
Cucumber::Constantize#constantize
auto-loading magic in cucumber itself.To replicate:
I've also created a dummy Rails 4 app to illustrate the problem: https://github.com/chrisroos/rails-4-and-cucumber
[1] cucumber/common#345
The text was updated successfully, but these errors were encountered: