Skip to content

Instantly share code, notes, and snippets.

@mutle
Created November 5, 2009 21:57
Show Gist options
  • Save mutle/227450 to your computer and use it in GitHub Desktop.
Save mutle/227450 to your computer and use it in GitHub Desktop.
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -80,6 +80,8 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
end
end
+ resources :make_projects_test_fail
+
match 'sprockets.js', :to => ::TestRoutingMapper::SprocketsApp
match 'people/:id/update', :to => 'people#update', :as => :update_person
→ ruby dispatch/routing_test.rb
DEPRECATION WARNING: ActiveSupport::DeprecatedCallbacks has been deprecated in favor of ActiveSupport::Callbacks. (called from included at /Users/mutle/Programming/redcursor/redpress/vendor/gems/dirs/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:7)
Loaded suite dispatch/routing_test
Started
..........F.........
Finished in 0.427833 seconds.
1) Failure:
test_projects(TestRoutingMapper)
[dispatch/routing_test.rb:200:in `test_projects'
dispatch/routing_test.rb:388:in `with_test_routes'
dispatch/routing_test.rb:194:in `test_projects'
/Users/mutle/Programming/redcursor/redpress/vendor/gems/dirs/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'
/Users/mutle/Programming/redcursor/redpress/vendor/gems/dirs/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:60:in `run']:
<"projects#new"> expected but was
<"projects#show">.
20 tests, 62 assertions, 1 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment