Skip to content

Instantly share code, notes, and snippets.

@rounders
Created May 3, 2011 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rounders/954043 to your computer and use it in GitHub Desktop.
Save rounders/954043 to your computer and use it in GitHub Desktop.
problems with cucumber
### output from running cucumber ###
Using the default profile...
Feature: Manage Projects
In order to manage my projects
As an authenticated user
I want to create and manage projects
Scenario: Projects List # features/manage_projects.feature:7
Given I am logged in as user bob@test.com # features/step_definitions/project_steps.rb:1
And I have 5 to 10 projects # features/step_definitions/project_steps.rb:10
When I go to the list of projects # features/step_definitions/web_steps.rb:48
Then I should see all of my projects # features/step_definitions/project_steps.rb:17
undefined method `add_assertion' for nil:NilClass (NoMethodError)
/Users/fharbec/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/testcase.rb:125:in `add_assertion'
/Users/fharbec/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:494:in `_wrap_assertion'
/Users/fharbec/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert'
./features/step_definitions/project_steps.rb:20:in `/^I should see all of my projects$/'
features/manage_projects.feature:11:in `Then I should see all of my projects'
Failing Scenarios:
cucumber features/manage_projects.feature:7 # Scenario: Projects List
1 scenario (1 failed)
4 steps (1 failed, 3 passed)
0m0.632s
### output from bundle list ###
Gems included by the bundle:
* abstract (1.0.0)
* actionmailer (3.0.6)
* actionpack (3.0.6)
* activemodel (3.0.6)
* activerecord (3.0.6)
* activeresource (3.0.6)
* activesupport (3.0.6)
* arel (2.0.9)
* bcrypt-ruby (2.1.4)
* builder (2.1.2)
* bundler (1.0.12)
* capybara (1.0.0.beta1 774ee9c)
* childprocess (0.1.8)
* configuration (1.2.0)
* cucumber (0.10.2 3c3c0ca)
* cucumber-rails (0.4.1 64c254b)
* database_cleaner (0.6.7)
* devise (1.3.4)
* diff-lcs (1.1.2)
* erubis (2.6.6)
* ffi (1.0.7)
* gherkin (2.3.7)
* hirb (0.4.5)
* i18n (0.5.0)
* jquery-rails (0.2.7)
* json (1.5.1)
* json_pure (1.5.1)
* launchy (0.4.0)
* mail (2.2.19)
* mime-types (1.16)
* nokogiri (1.4.4)
* orm_adapter (0.0.4)
* polyglot (0.3.1)
* rack (1.2.2)
* rack-mount (0.6.14)
* rack-test (0.5.7)
* rails (3.0.6)
* railties (3.0.6)
* rake (0.8.7)
* ranked-model (0.0.2)
* rcov (0.9.9)
* rubyzip (0.9.4)
* selenium-webdriver (0.2.0)
* sqlite3 (1.3.3)
* term-ansicolor (1.0.5)
* thor (0.14.6)
* treetop (1.4.9)
* tzinfo (0.3.27)
* warden (1.0.3)
* wirble (0.1.3)
* xpath (0.1.4)
### the cucumber step that causes the error ###
Then /^I should see all of my projects$/ do
assert true
end
### output from ruby --version ###
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.5.0]
@lindes
Copy link

lindes commented May 19, 2011

I'm getting a similar error... found this on google, and I'll keep digging, but, does this have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment