Re: script/generate cucumber fails in Rails 2.3.5 and Ruby 1.9.1

Seems to me that we found the error. You cucumer.rb is missing. Send you
mine I it help somehow:

Edit at your own peril - it’s recommended to regenerate this file

in the future when you upgrade to a newer version of Cucumber.

IMPORTANT: Setting config.cache_classes to false is known to

break Cucumber’s use_transactional_fixtures method.

For more information see

https://rspec.lighthouseapp.com/projects/16211/tickets/165
config.cache_classes = true

Log error messages when you accidentally call methods on nil.

config.whiny_nils = true

Show full error reports and disable caching

config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false

Disable request forgery protection in test environment

config.action_controller.allow_forgery_protection = false

Tell Action Mailer not to deliver emails to the real world.

The :test delivery method accumulates sent emails in the

ActionMailer::Base.deliveries array.

config.action_mailer.delivery_method = :test

config.gem ‘cucumber-rails’, :lib => false, :version => ‘>=0.2.2’
unless
File.directory?(File.join(Rails.root, ‘vendor/plugins/cucumber-rails’))
config.gem ‘database_cleaner’, :lib => false, :version => ‘>=0.2.3’
unless
File.directory?(File.join(Rails.root,
‘vendor/plugins/database_cleaner’))
config.gem ‘webrat’, :lib => false, :version => ‘>=0.6.0’
unless
File.directory?(File.join(Rails.root, ‘vendor/plugins/webrat’))
config.gem ‘rspec’, :lib => false, :version => ‘>=1.2.9’
unless
File.directory?(File.join(Rails.root, ‘vendor/plugins/rspec’))
config.gem ‘rspec-rails’, :lib => false, :version => ‘>=1.2.9’
unless
File.directory?(File.join(Rails.root, ‘vendor/plugins/rspec-rails’))

Cheers,
Chris

You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Guys,

Still nothing :frowning:

Same error after creating the cucumber.rb file in the environments.

script/generate cucumber still not working.

Thx Chris!

Any one else?

[]'s
RD

On Wed, Dec 30, 2009 at 11:06 PM, Christoph J. <
[email protected]> wrote:

https://rspec.lighthouseapp.com/projects/16211/tickets/165
config.action_controller.allow_forgery_protection = false
config.gem ‘webrat’, :lib => false, :version => ‘>=0.6.0’ unless


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.