Ruby on Rails Sunday, July 8, 2012

Hi all,

     i am learning cucumber and when i am trying to run rake cucumber:ok resulting in following error:

C:/Ruby187/bin/ruby -S bundle exec cucumber  --profile default

*** WARNING: You must use ANSICON 1.31 or higher (http://adoxa.110mb.com/ansicon

) to get coloured output on Windows

Using the default profile...

Feature: Creating projects

    In order to have projects to assign tickets to

    As a user

    I want to create them easily

 

  Scenario: Creating a project                    # features\creating_projects.feature:6

    Given I am on the homepage                    # features\creating_projects.feature:7

      Undefined step: "I am on the homepage" (Cucumber::Undefined)

      features\creating_projects.feature:7:in `Given I am on the homepage'

    When I follow "New Project"                   # features\creating_projects.feature:8

      Undefined step: "I follow "New Project"" (Cucumber::Undefined)

      features\creating_projects.feature:8:in `When I follow "New Project"'

    And I fill in "Name" with "TextMate 2"        # features\creating_projects.feature:9

      Undefined step: "I fill in "Name" with "TextMate 2"" (Cucumber::Undefined)

 

      features\creating_projects.feature:9:in `And I fill in "Name" with "TextMate 2"'

    And I press "Create Project"                  # features\creating_projects.feature:10

      Undefined step: "I press "Create Project"" (Cucumber::Undefined)

      features\creating_projects.feature:10:in `And I press "Create Project"'

    Then I should see "Project has been created." # features\creating_projects.feature:11

      Undefined step: "I should see "Project has been created."" (Cucumber::Undefined)

      features\creating_projects.feature:11:in `Then I should see "Project has been created."'

 

1 scenario (1 undefined)

5 steps (5 undefined)

0m4.811s

 

You can implement step definitions for undefined steps with these snippets:

 

Given /^I am on the homepage$/ do

  pending # express the regexp above with the code you wish you had

end

 

When /^I follow "(.*?)"$/ do |arg1|

  pending # express the regexp above with the code you wish you had

end

 

When /^I fill in "(.*?)" with "(.*?)"$/ do |arg1, arg2|

  pending # express the regexp above with the code you wish you had

end

 

When /^I press "(.*?)"$/ do |arg1|

  pending # express the regexp above with the code you wish you had

end

 

Then /^I should see "(.*?)"$/ do |arg1|

  pending # express the regexp above with the code you wish you had

end

 

rake aborted!

Command failed with status (1): [C:/Ruby187/bin/ruby -S bundle exec cucumbe...]

C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `create_shell_runner'

.

.

.

C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33

C:/Ruby187/bin/rake:19:in `load'

C:/Ruby187/bin/rake:19

Tasks: TOP => cucumber:ok

 
how can i resolve it.please help me out with this

Thanks in advance.

--



--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment