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/.