Hi Everyone,
I'm working on a rails project using, cucumber, capybara and factory girl, and recently updated from rails 3.0.3 to rails 3.0.5, deleted my Gemfile.lock, run the bundle install command, and it appears that cucumber or cucumber-rails got updated, because I had to run rails g cucumber:install --capybara --rspec again for and error that appeared.
The thing is that know when I run cucumber all my features fails because doesn't find any records, not even the records I created (steps passes) in the Background section of the feature file.
I tried the same gem version combination creating a new project and everything worked, but in my current project don't. What could be happening?
My gem versions are:
Using capybara (0.4.1) from https://github.com/jnicklas/capybara.git (at 0.4.1)
Using cucumber (0.10.2)
Using cucumber-rails (0.4.0)
Using database_cleaner (0.6.6)
Using factory_girl (1.3.3)
Using factory_girl_rails (1.0.1)
Using rails (3.0.5)
Using rspec-core (2.5.1)
Using rspec-expectations (2.5.0)
Using rspec-mocks (2.5.0)
Using rspec (2.5.0)
Using rspec-rails (2.5.0)
in Gemfile set the version of cucumber-rails to 0.3.2
gem cucumber-rails, '=0.3.2'
run bundle update and roll back to cucumber 0.10.0. There are a bunch
of things rolled up into 0.10.2 that were separate in 0.10.0 and I have
had problems with it myself. If cucumber-0.10.0 was working for you
then go back to that and let the new version of cucumber get itself
sorted out before upgrading to it.
--
Posted via http://www.ruby-forum.com/.