Skip to content

Instantly share code, notes, and snippets.

View taylorbrooks's full-sized avatar

Taylor Brooks taylorbrooks

  • Simple
  • Austin, TX
View GitHub Profile
SampleApp::Application.routes.draw do |map|
match "/home" => "pages#home"
match "/contact" => "pages#contact"
match "/about" => "pages#about"
require 'spec_helper'
describe PagesController do
render_views
describe "GET 'home'" do
it "should be successful" do
get 'home'
response.should be_success
end
Finished in 0.05004 seconds
3 examples, 1 failure
1) PagesController GET 'about' should be successful
Failure/Error: get 'about'
No route matches {:controller=>"pages", :action=>"about"}
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:407:in `generate'
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:450:in `generate'
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:446:in `generate_extras'
# /Users/taylorbrooks/.rvm/gems/ruby-1.8.7-p174/gems/actionpack-3.0.0.rc/lib/action_dispatch/routing/route_set.rb:442:in `extra_keys'