I'm reading "Rails 3 in action", chapter 3, p. 56.

It is said that the Cucumber skeleton generator
> rails generate cucumber:install
has to also generate the definition for the first step of the Scenario
"Given I am on the homepage" in the file
"features/step_definitions/web_steps.rb"


# file: features/step_definitions/web_steps.rb
Given /^(?:|I )am on (.+)$/ do |page_name|
   visit path_to(page_name)
end

But it doesn't. Also it doesn't generate module NavigationHelpers along
with the "features/support/paths.rb" file.

Why does it happen? Is it just a deprecated behavior and now cucumber
doesn't generate those files?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/70f1a02dc092bc03e0c4219409adfa3f%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to