-
-
Notifications
You must be signed in to change notification settings - Fork 327
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 compatibility #231
Comments
I guess this deprecation is reason for the following problem http://stackoverflow.com/questions/14367396/sql-error-cannot-start-a-transaction-within-a-transaction-while-testing-with-cuc |
I haven't had time to look at Rails 4 yet. Anyone blessed with more time would like to look at this and get a PR together? |
This pull request covers the ActionController::Integration deprecation: #234 |
For what its worth, in my playing with rails 4 for the last few weeks, I've not run into any other issues. |
@dbruns fixtures work out of the box? |
Rails 4 compatibility means all of cucumber-rails' features/specs pass. We should create a rails-4.0 branch for this that also contains other changes made on master (merge/rebase with master regularly). The build system should also be modified so that all features/specs can be run against both Rails 3.x and 4.x, by changing e.g. an environment variable. |
|
Then I'm guessing a Gemfile for Rails 4 should be added? |
Yes by using the appraisal gem as discussed here #240 |
Ah, so we are dependent on #238. |
Mongoid now supports Rails 4.0.0.rc2. |
Which version is that? |
Looks like it's not released yet, only in git. Could you try using a git URL for the dependency? |
I've tried using gem 'mongoid', git: 'https://github.com/mongoid/mongoid.git' in the appraisal for rails 4 but I don't think it works. |
@Kosmas what's the error message? |
@aslakhellesoy https://gist.github.com/Kosmas/5862807 when I use the link into the mongoid feature even the rails_3 branch fails |
I get those warnings, too, when running .../.rvm/rubies/ruby-2.0.0-p247/bin/ruby -S bundle exec cucumber --profile default
DEPRECATION WARNING: ActionController::Integration is deprecated and will be removed, use ActionDispatch::Integration instead. (called from require at .../features/support/env.rb:7)
DEPRECATION WARNING: ActionController::IntegrationTest is deprecated and will be removed, use ActionDispatch::IntegrationTest instead. (called from require at .../features/support/env.rb:7) |
I am using ruby-2.0.0-p247 and Rails 4.0.0 and I get the following warnings when I run my cucumber tests, as a result of
|
I modified the cucumber-rails 1.3.0 gem temporarily as follows: in the file
to:
then in file
to:
I did not observe any trouble yet, but I did not check the stuff with anything that accesses databases. Is there much more to change? It is 7 months from the first comment in this topic... |
Here is the latest on the rails 4 compatibility. https://groups.google.com/forum/?fromgroups=#!topic/cukes-devs/J2xfF6JsIlk The idea is to make the necessary changes to the tests, so they can all pass in all different versions of rails. The latest travis with a couple of tests commented out is here: |
@Kosmas THANK YOU for working on this issue! ❤️ |
@tilsammans thanks. It should be really close for a new release now, so please test the new version (or current master) and report back here with any issues. |
I am using master now, it works without problems. It might be worthwhile to point out to re-run |
@tilsammans thanks for letting me know. I've added the suggestion to rerun the installation script on the README file. |
version 1.4.0 is rails 4 compatible now. |
For Rails 4 preparedness, I got the following under Rails 4.0.0.beta
ActionController::Integration is deprecated
This comes up once at the start, when firing cucumber.
#increment_open_transactions
This comes up on each scenario each time there is a DB operation, I think.
The text was updated successfully, but these errors were encountered: