Erros when trying to run Cucumber feature files

8 views
Skip to first unread message

Rodrigo Bonilha Tolledo

unread,
May 1, 2013, 9:53:48 PM5/1/13
to jewel...@googlegroups.com
Hi folks,

I'd like to run the cucumber .feature files, however I get a lot of errors like:

rtolled:generator Thoughtworks$ cucumber cucumber.feature
Feature: generating cucumber stories
  In order to get started using cucumber in a project
  A user should be able to
  generate a project setup for their testing framework of choice

  Scenario: sans cucumber setup                                                               # cucumber.feature:6
    Given a working directory                                                                 # filesystem_steps.rb:1
      undefined local variable or method `create_construct' for #<Object:0x007ff05c1ae448> (NameError)
      ./filesystem_steps.rb:2:in `/^a\ working\ directory$/'
      cucumber.feature:7:in `Given a working directory'

This is what we have at filesystem_steps.rb:2:

1 Given 'a working directory' do
  2   @working_dir = create_construct
  3 end

Is it right? Or is that something I need to change in order to run the tests successfully?

Thanks,

-- Rodrigo
Reply all
Reply to author
Forward
0 new messages