|
Replies:
5
-
Pages:
1
-
Last Post:
Mar 30, 2012 4:32 PM
by: take056553
|
|
|
Posts:
10
From:
taiwan
Registered:
3/30/12
|
|
|
|
3.2.4, Setting up a page title, page 74
Posted:
Mar 30, 2012 3:52 PM
|
|
On page 74, after add new steps to features/creating_projects.feature and modified the feature/support/paths.rb.
Book says: "Upon running rake cucumber:ok, you now see that a step passes, but the rest of the feature fails:
And I should be on the project page for "TextMate 2" And I should see "TextMate 2 - Projects - Ticketee" expected #has_content?(TextMate 2 - Projects - Ticketee") to return true, got false
BUT,
This is not the error I got. I got:
And I should be on the project page "TextMate 2" # features/step_definitions/web_steps.rb:230 Can't find mapping from "the project page "TextMate 2"" to a path. Now, go and add a mapping in /Users/Mac/projects/rails-in-action/ticketee/features/support/paths.rb (RuntimeError) ./features/support/paths.rb:29:in `rescue in path_to' ./features/support/paths.rb:23:in `path_to' ./features/step_definitions/web_steps.rb:233:in `/^(?:|I )should be on (.+)$/' features/creating_projects.feature:12:in `And I should be on the project page "TextMate 2"' And I should see "TextMate 2 - Projects - Ticketee" # features/step_definitions/web_steps.rb:105
Any clues??
|
|
Posts:
394
From:
Sydney
Registered:
6/18/10
|
|
|
|
Re: 3.2.4, Setting up a page title, page 74
Posted:
Mar 30, 2012 3:56 PM
in response to:
take056553
|
|
Did you miss the step from listing 3.20? If you're missing this, then that would cause the test to break the way that you're saying it does.
|
|
Posts:
10
From:
taiwan
Registered:
3/30/12
|
|
|
|
Re: 3.2.4, Setting up a page title, page 74
Posted:
Mar 30, 2012 4:09 PM
in response to:
ryanbigg
|
|
I did Listing 3.20. Also I think in the book it did not implement the steps for additional 2 steps: And I should be on the project page for "TextMate 2" And I should see "TextMate 2 - Projects - Ticketee"
Stuck here for almost a day o_O
|
|
Posts:
10
From:
taiwan
Registered:
3/30/12
|
|
|
|
Re: 3.2.4, Setting up a page title, page 74
Posted:
Mar 30, 2012 4:16 PM
in response to:
take056553
|
|
1 suggestion:
This "Write Tests, Implement, progressive improvement" whole ideas are great. I suggest that next edition of book will put the testing project (ticketee) on github. Then if the reader stuck, they can go to github to get the project, and checkout to that commit where he/she stuck. Then they can compare what's missing there.
|
|
Posts:
394
From:
Sydney
Registered:
6/18/10
|
|
|
Posts:
10
From:
taiwan
Registered:
3/30/12
|
|
|
|
Re: 3.2.4, Setting up a page title, page 74
Posted:
Mar 30, 2012 4:32 PM
in response to:
ryanbigg
|
|
Oh Thanks, Stuck on commit 22a6429. Figuring out the diff.
|
|
|
Legend
|
|
Gold: 300
+
pts
|
|
Silver: 100
- 299
pts
|
|
Bronze: 25
- 99
pts
|
|
Manning Author
|
|
Manning Staff
|
|