Skip to content

Instantly share code, notes, and snippets.

@deedubs
Created September 7, 2010 18:12
Show Gist options
  • Save deedubs/568763 to your computer and use it in GitHub Desktop.
Save deedubs/568763 to your computer and use it in GitHub Desktop.
Failures:
1) Admin::InvitesController GET 'new' should be successful
Failure/Error: get 'new'
No route matches {:controller=>"admin/invites", :action=>"new"}
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:424:in `raise_routing_error'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:406:in `generate'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:453:in `generate'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:449:in `generate_extras'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:445:in `extra_keys'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_controller/test_case.rb:136:in `assign_parameters'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_controller/test_case.rb:395:in `process'
# /Library/Ruby/Gems/1.8/gems/actionpack-3.0.0/lib/action_controller/test_case.rb:343:in `get'
# ./spec/controllers/admin/invites_controller_spec.rb:10
# /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject'
constraints(:subdomain => "admin") do
root :to => 'admin/control_panels#show'
resources :accounts, :controller => 'admin/accounts' do
resources :users, :controller => 'admin/users' do
collection do
get '/invite/new' => 'admin/invites#new'
post '/invite' => 'admin/invites#create'
end
end
end
end
require 'spec_helper'
describe Admin::InvitesController do
before(:each) do
request.host = "admin.#{Settings.host}"
end
describe "GET 'new'" do
it "should be successful" do
get 'new'
response.should be_success
response.should render_template 'new'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment