Rails 3 in action book: some files are not generated as written in the book

11 views
Skip to first unread message

Wins Lin

unread,
Jun 18, 2013, 12:09:06 PM6/18/13
to rubyonra...@googlegroups.com
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/.

Hassan Schroeder

unread,
Jun 18, 2013, 12:23:10 PM6/18/13
to rubyonra...@googlegroups.com
On Tue, Jun 18, 2013 at 9:09 AM, Wins Lin <li...@ruby-forum.com> wrote:

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

Yes.

http://aslakhellesoy.com/post/11055981222/the-training-wheels-came-off

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Reply all
Reply to author
Forward
0 new messages