Skip to content

Instantly share code, notes, and snippets.

@edbond
Created February 16, 2009 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edbond/65304 to your computer and use it in GitHub Desktop.
Save edbond/65304 to your computer and use it in GitHub Desktop.
default: -b -r features/support/env.rb -r features/support/simple.rb -r features/step_definitions features/simple
selenium: -b -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced
Then /^should be user "(\w+)" in system$/ do |login|
User.first(:conditions => {:login => login}).should_not be_nil
end
Then should be user "bob" in system # features/step_definitions/new_client_registration_steps.rb:9
undefined method `be_nil' for #<ActionController::Integration::Session:0xb671d5c0> (NoMethodError)
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/test_process.rb:471:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/integration.rb:498:in `__send__'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/integration.rb:498:in `method_missing'
./features/step_definitions/new_client_registration_steps.rb:10
/usr/lib/ruby/gems/1.8/gems/aslakhellesoy-cucumber-0.1.99.21/bin/../lib/cucumber/core_ext/instance_exec.rb:18:in `instance_exec'
/usr/lib/ruby/gems/1.8/gems/aslakhellesoy-cucumber-0.1.99.21/bin/../lib/cucumber/core_ext/instance_exec.rb:18:in `cucumber_instance_exec'
/usr/lib/ruby/gems/1.8/gems/aslakhellesoy-cucumber-0.1.99.21/bin/../lib/cucumber/core_ext/instance_exec.rb:25:in `cucumber_run_with_backtrace_filtering'
/usr/lib/ruby/gems/1.8/gems/aslakhellesoy-cucumber-0.1.99.21/bin/../lib/cucumber/core_ext/instance_exec.rb:12:in `cucumber_instance_exec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment