versapay/viewcumber — Issue #9: undefined method `gherkin_object' for #<Gherkin::Formatter::JSONFormatter> (NoMethodError)
Author: karpah
Created: 2012-01-10 06:18:25+00:00
State: open

I've installed viewcumber into my Rails 3.1, Cucumber 1.1.2 project by adding it to my Gemfile and then bundling.

I've tried running both `viewcumber features` and `cucumber --format Viewcumber features` - both times I get the same error:

$ cucumber --format Viewcumber features
Using the default profile...
undefined method `gherkin_object' for # (NoMethodError)
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/viewcumber-0.2.2/lib/viewcumber.rb:38:in `after_step'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:173:in `block in send_to_all'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:171:in `each'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:171:in `send_to_all'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:164:in `broadcast'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:98:in `visit_step'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/step_collection.rb:15:in `block in accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/step_collection.rb:14:in `each'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/step_collection.rb:14:in `accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:93:in `block in visit_steps'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:92:in `visit_steps'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/background.rb:41:in `block in accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/background.rb:52:in `block in with_visitor'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/scenario.rb:108:in `with_visitor'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/background.rb:51:in `with_visitor'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/background.rb:38:in `accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:57:in `block in visit_background'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:56:in `visit_background'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/feature.rb:41:in `accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:20:in `block in visit_feature'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:19:in `visit_feature'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/features.rb:29:in `block in accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/features.rb:17:in `each'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/features.rb:17:in `each'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/features.rb:28:in `accept'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:14:in `block in visit_features'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/ast/tree_walker.rb:13:in `visit_features'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/runtime.rb:45:in `run!'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/lib/cucumber/cli/main.rb:20:in `execute'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.2/bin/cucumber:14:in `'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `load'
/Users/becky/.rvm/gems/ruby-1.9.2-p290/bin/cucumber:19:in `

'

Is this a compatibility issue or is there something else undocumented I need to do to get it to work?