Skip to content

Instantly share code, notes, and snippets.

@Solnse
Created January 23, 2013 20:19
Show Gist options
  • Save Solnse/4612604 to your computer and use it in GitHub Desktop.
Save Solnse/4612604 to your computer and use it in GitHub Desktop.
failure
require 'spec_helper'
describe "Cats" do
it "Has a homepage" do
visit "cats/home"
page.should have_content("About cats")
end
end
Failures:
1) Cats Has a homepage
Failure/Error: visit "cats/home"
ActionController::RoutingError:
No route matches [GET] "/home"
# ./spec/requests/cats_spec.rb:6:in `block (2 levels) in <top (required)>'
Finished in 0.12806 seconds
1 example, 1 failure
Project::Application.routes.draw do
get "cats/home"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment