script/generate cucumber fails in Rails 2.3.5 and Ruby 1.9.1

Try to reinstall cucumber and cucumber-rails. How does your environments/cucumber.rb looks like? Can you post it. I have no futher tips. Sorry.

Cheers,
Chris

Chris,

There’s no environments/cucumber.rb file.

I thought it would be generated by using the script/generate cucumber.

I’m following a screencast by Ryan Bates, which currently doesn’t work anymore :slight_smile:

Kinda lost here.

/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’: no such file to load – cucumber/platform (MissingSourceFile)

from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block in require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'

from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /var/lib/gems/1.9.1/gems/cucumber-rails-0.2.2/generators/cucumber/cucumber_generator.rb:2:in `<top (required)>'

from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block in require'

from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'

from /var/lib/gems/1.9.1/gems/rails-2.3.5/lib/rails_generator/spec.rb:17:in `klass'
from /var/lib/gems/1.9.1/gems/rails-2.3.5/lib/rails_generator/lookup.rb:140:in `instance'
from /var/lib/gems/1.9.1/gems/rails-2.3.5/lib/rails_generator/scripts.rb:31:in `run'

from /var/lib/gems/1.9.1/gems/rails-2.3.5/lib/commands/generate.rb:6:in `<top (required)>'
from script/generate:3:in `require'
from script/generate:3:in `<main>'

Looking at the error, it seems like its missing something from a rails activesupport.

Does cucumber works with Ruby 1.9.1 and rails 2.3.5?

[]'s
Rodrigo Dellacqua