Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (17 sloc) 0.538 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Feature: Routing

Scenario: Visit undefined route
Given I have created a new Rails 3 app with no database and installed cucumber-rails
And I remove the file "public/index.html"
And I write to "features/tests.feature" with:
"""
Feature: Tests
Scenario: Tests
When I go to the home page
"""
And I run `rake cucumber`
Then it should fail with:
"""
1 scenario (1 failed)
1 step (1 failed)
"""
And the stdout should contain "ActionController::RoutingError"
Something went wrong with that request. Please try again.