rabbithole (5) [Avatar] Offline
#1
So I rolled back my project to the end of chapter 4.
I ran rake cucumber:ok and everything passed.

I copied the creating_tickets.feature from the project source code and commented out everything except what was on page 100 of the book.

I added the link for New Ticket in show.html.erb

I changed routes.rb to the listing on page 101

I'm getting the same error as before after running: rake cucumber:ok

It should be complaining about "unititialized constant TicketsController..."
but instead is complaining about Unable to find link "Internet Explorer"

I've been stuck on this for a while and any help would be appreciated.

Here is the cucumber output if it helps

Using the default profile...
Feature: Creating projects
In order to have projects to assing tickets to
As a user
I want to create them easily

Background: # features/creating_projects.feature:6
Given I am on the homepage # features/step_definitions/web_steps.rb:44
When I follow "New Project" # features/step_definitions/web_steps.rb:56

Scenario: Creating a project # features/creating_projects.feature:10
And I fill in "Name" with "TextMate 2" # features/step_definitions/web_steps.rb:60
And I press "Create Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has been created." # features/step_definitions/web_steps.rb:105
And I should be on the project page for "TextMate 2" # features/step_definitions/web_steps.rb:230
And I should see "TextMate 2 - Projects - Tix" # features/step_definitions/web_steps.rb:105

Scenario: Creating a project without a name # features/creating_projects.feature:17
And I press "Create Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has not been created." # features/step_definitions/web_steps.rb:105
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:105

Feature: Creating Tickets
In order to create tickets for projects
As a user
I want to be able to select a project and do that

Background: # features/creating_tickets.feature:6
Given there is a project called "Internet Explorer" # features/step_definitions/project_steps.rb:1
And I am on the homepage # features/step_definitions/web_steps.rb:44
When I follow "Internet Explorer" # features/step_definitions/web_steps.rb:56
Unable to find link "Internet Explorer" (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:57:in `/^(?smilieI )follow "([^"]*)"$/'
features/creating_tickets.feature:16:in `When I follow "Internet Explorer"'

And I follow "New Ticket" # features/step_definitions/web_steps.rb:56

Scenario: Creating a ticket # features/creating_tickets.feature:19
When I fill in "Title" with "Non-standards compliance" # features/step_definitions/web_steps.rb:60
And I fill in "Description" with "My pages are ugly!" # features/step_definitions/web_steps.rb:60
And I press "Create Ticket" # features/step_definitions/web_steps.rb:52
Then I should see "Ticket has been created." # features/step_definitions/web_steps.rb:105

#Then I should see "Created by user@ticketee.com"
Scenario: Creating a ticket without valid attributes fails # features/creating_tickets.feature:26
When I press "Create Ticket" # features/step_definitions/web_steps.rb:52
Then I should see "Ticket has not been created." # features/step_definitions/web_steps.rb:105
And I should see "Title can't be blank" # features/step_definitions/web_steps.rb:105
And I should see "Description can't be blank" # features/step_definitions/web_steps.rb:105

Feature: Deleting projects
In order to remove needless projects
As a project manager
I want to make them dissapear

Scenario: Deleting a project # features/deleting_projects.feature:6
Given there is a project called "TextMate 2" # features/step_definitions/project_steps.rb:1
And I am on the homepage # features/step_definitions/web_steps.rb:44
When I follow "Show" # features/step_definitions/web_steps.rb:56
And I follow "Delete Project" # features/step_definitions/web_steps.rb:56
Then I should see "Project has been deleted." # features/step_definitions/web_steps.rb:105
Then I should not see "TextMate 2" # features/step_definitions/web_steps.rb:123

Feature: Editing Projects
In order to update project information
As a user
I want to be able to do that through an interface

Background: # features/editing_projects.feature:6
Given there is a project called "TextMate 2" # features/step_definitions/project_steps.rb:1
And I am on the homepage # features/step_definitions/web_steps.rb:44
When I follow "Show" # features/step_definitions/web_steps.rb:56
And I follow "Edit Project" # features/step_definitions/web_steps.rb:56

Scenario: Updating a project # features/editing_projects.feature:12
And I fill in "Name" with "TextMate 2 beta" # features/step_definitions/web_steps.rb:60
And I press "Update Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has been updated." # features/step_definitions/web_steps.rb:105
Then I should be on the project page for "TextMate 2 beta" # features/step_definitions/web_steps.rb:230

Scenario: Updating a project with invalid attributes is not permitted # features/editing_projects.feature:18
And I fill in "Name" with "" # features/step_definitions/web_steps.rb:60
And I press "Update Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has not been updated." # features/step_definitions/web_steps.rb:105

Scenario: Updating a project with a name that is too short # features/editing_projects.feature:24
And I fill in "Name" with "12" # features/step_definitions/web_steps.rb:60
And I press "Update Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has not been updated." # features/step_definitions/web_steps.rb:105

Feature: Viewing projects
In order to assign tickets to a project
As a user
I want to be able to see a list of available projects

Scenario: Listing all projects # features/viewing_projects.feature:6
Given there is a project called "TextMate 2" # features/step_definitions/project_steps.rb:1
And I am on the homepage # features/step_definitions/web_steps.rb:44
When I follow "Show" # features/step_definitions/web_steps.rb:56
Then I should be on the project page for "TextMate 2" # features/step_definitions/web_steps.rb:230

Failing Scenarios:
cucumber features/creating_tickets.feature:19 # Scenario: Creating a ticket

9 scenarios (1 failed, 1 skipped, 7 passed)
60 steps (1 failed, 13 skipped, 46 passed)
0m1.640s
rabbithole (5) [Avatar] Offline
#2
Re: 5.1.1 / 5.1.2
I figured it out. I had changed some links on the index page to conform with the example in chapter 1, then forgot about it....