Created
August 18, 2008 04:16
-
-
Save carllerche/5928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
carl-lerches-mac-pro:router carllerche$ rake specs:old | |
(in /Users/carllerche/Developer/Source/router) | |
The default routes | |
- should match /foo to the Foo controller and index action | |
- should match /foo/bar to the Foo controller and the bar action | |
- should match /foo/bar/12 to the Foo controller, the bar action, and id of 12 | |
Deferred routes | |
- should match routes based on the incoming params | |
- should fall back to the default route if the deferred condition is not met | |
A route marked as fixatable | |
- allows fixation (ERROR - 1) | |
A route NOT marked as fixatable | |
- DOES NOT allow fixation (ERROR - 2) | |
namespaced resource(s) routes | |
- should match a get to /admin/blogposts without setting namespace | |
- should match a get to /admin/blogposts setting namespace manually | |
- should match a get to /admin/blogposts to the blogposts controller and index action (FAILED - 3) | |
- should match a get to /admin/foo to the foo controller and show action (FAILED - 4) | |
- should match a get to /admin/foo/blogposts to the blogposts controller and index action (FAILED - 5) | |
- should match a get to /admin/blogposts/1/foo to the foo controller and the show action (FAILED - 6) | |
- should match a get to /blogposts to the blogposts controller when namespace is passed in to resources (FAILED - 7) | |
- should match a get to /blogposts/1/foo to the foo controller when namespace is passed in to resources as an option (FAILED - 8) | |
- should match a get to /blogposts/1/foo to the foo controller without a namespace (FAILED - 9) | |
- should match a get to /my_admin/blogposts to the blogposts controller with a custom patch setting (FAILED - 10) | |
- should match a get to /admin/blogposts/1/foo to the foo controller and the show action with namespace admin (FAILED - 11) | |
A route derived from the blocks of #match | |
- should inherit the :controller option. (FAILED - 12) | |
- should inherit the :action option. (FAILED - 13) | |
- should inherit the default :action of 'index' (FAILED - 14) | |
- should make use of the :params option (FAILED - 15) | |
- should inherit the parameters through many levels (FAILED - 16) | |
- allows wrapping of nested routes all having shared argument | |
- allows wrapping of nested routes all having shared argument | |
- allows wrapping of nested routes all having shared OPTIONAL argument | |
- allows wrapping of nested routes all having shared argument with PREDEFINED VALUES (FAILED - 17) | |
nested resources routes | |
- should match a get to /blogposts/1/comments to the comments controller and index action with blogpost_id (FAILED - 18) | |
- should match a get to /blogposts/1/comments/2/versions to the versions controller and index action with blogpost_id and comment_id (FAILED - 19) | |
- should match a get to /users/1/comments to the comments controller and index action with user_id (FAILED - 20) | |
- should match a get to /foo/comments to the comments controller and index action (FAILED - 21) | |
- should match a get to /domains/merbivore_com/emails to the emails controller and index action with domain => 'merbivore_com (FAILED - 22) | |
resources routes | |
- should match a get to /foo to the blogposts controller and show action | |
- should match a post to /foo to the blogposts controller and create action | |
- should match a put to /foo to the blogposts controller and update action | |
- should match a delete to /foo to the blogposts controller and show action | |
- should match a get to /foo/new to the blogposts controller and new action | |
- should match a get to /foo/edit to the blogposts controller and edit action | |
- should match a get to /foo/delete to the blogposts controller and delete action | |
resources routes | |
- should match a get to /blogposts to the blogposts controller and index action | |
- should match a post to /blogposts to the blogposts controller and create action | |
- should match a get to /blogposts/new to the blogposts controller and the new action | |
- should match a get to /blogposts/1 ot the blogposts controller and the show action with id 1 | |
- should match a put to /blogposts/1 ot the blogposts controller and the update action with id 1 | |
- should match a delete to /blogposts/1 ot the blogposts controller and the destroy action with id 1 | |
- should match a get to /blogposts/1/edit to the blogposts controller and the edit action with id 1 | |
- should not match a put to /blogposts/1/edit | |
- should match a get to /blogposts/1/delete to the blogposts controller and the delete action with id 1 | |
resources routes with named keys | |
- should match a get to /emails/bidule/merbivore_com to the emails controller and the show action with username => 'bidule', domain => 'merbivore_com' | |
- should match a put to /emails/bidule/merbivore_com to the emails controller and the update action with username => 'bidule', domain => 'merbivore_com' | |
- should match a delete to /emails/bidule/merbivore_com to the emails controller and the destroy action with username => 'bidule', domain => 'merbivore_com' | |
- should match a get to /emails/bidule/merbivore_com/edit to the emails controller and the destroy action with username => 'bidule', domain => 'merbivore_com' | |
- should not match a put to /emails/bidule/merbivore_com/edit | |
- should match a get to /emails/bidule/merbivore_com/delete to the emails controller and the delete action with username => 'bidule', domain => 'merbivore_com' | |
Regex-based routes | |
- should process a simple regex (ERROR - 23) | |
- should support inbound user agents | |
Routes that are restricted based on incoming params | |
- should allow you to restrict routes to POST requests | |
- should allow you to restrict routes based on protocol | |
- does not require explicit specifying of params | |
A plain route with no variables | |
- should return the parameters passed to #to | |
A route with variables specified as :foo/:bar | |
- should work with :controller/:action/:id | |
- should work with :foo/:bar/:baz to :controller => ':foo/:bar' | |
A route containing block matchers | |
- should support block matchers as a path namespace | |
- should still support :variables in the to route from any level | |
A route containing block matchers for the 'to' section | |
- should point a bunch of 'from' segments to the same 'to' | |
1) | |
NameError in 'A route marked as fixatable allows fixation' | |
undefined local variable or method `enabled' for #<Router::Behavior:0x10d02e0> | |
./spec/old/../../lib/router/behavior.rb:152:in `fixatable' | |
./spec/old/fixation_spec.rb:8: | |
./spec/old/../../lib/router.rb:50:in `prepare' | |
./spec/old/fixation_spec.rb:7: | |
2) | |
NoMethodError in 'A route NOT marked as fixatable DOES NOT allow fixation' | |
undefined method `matched_route_for' for #<Spec::Example::ExampleGroup::Subclass_4:0x112c568> | |
./spec/old/fixation_spec.rb:25: | |
3) | |
'namespaced resource(s) routes should match a get to /admin/blogposts to the blogposts controller and index action' FAILED | |
Expected :controller to be "blogposts", but was "admin/blogposts" | |
Got {:format=>nil, :controller=>"admin/blogposts", :action=>"index"} | |
./spec/old/namespace_spec.rb:33: | |
4) | |
'namespaced resource(s) routes should match a get to /admin/foo to the foo controller and show action' FAILED | |
Expected :controller to be "foo", but was "admin/foo" | |
Got {:format=>nil, :controller=>"admin/foo", :action=>"show"} | |
./spec/old/namespace_spec.rb:42: | |
5) | |
'namespaced resource(s) routes should match a get to /admin/foo/blogposts to the blogposts controller and index action' FAILED | |
Expected :controller to be "blogposts", but was "admin/blogposts" | |
Got {:format=>nil, :controller=>"admin/blogposts", :action=>"index"} | |
./spec/old/namespace_spec.rb:53: | |
6) | |
'namespaced resource(s) routes should match a get to /admin/blogposts/1/foo to the foo controller and the show action' FAILED | |
Expected :controller to be "foo", but was "admin/foo" | |
Got {:format=>nil, :controller=>"admin/foo", :blogpost_id=>"1", :action=>"show"} | |
./spec/old/namespace_spec.rb:64: | |
7) | |
'namespaced resource(s) routes should match a get to /blogposts to the blogposts controller when namespace is passed in to resources' FAILED | |
Expected :controller to be "blogposts", but was "admin/blogposts" | |
Got {:format=>nil, :controller=>"admin/blogposts", :action=>"index"} | |
./spec/old/namespace_spec.rb:71: | |
8) | |
'namespaced resource(s) routes should match a get to /blogposts/1/foo to the foo controller when namespace is passed in to resources as an option' FAILED | |
Expected :controller to be "blogposts", but was "admin/blogposts" | |
Got {:format=>nil, :controller=>"admin/blogposts", :action=>"index"} | |
./spec/old/namespace_spec.rb:80: | |
9) | |
'namespaced resource(s) routes should match a get to /blogposts/1/foo to the foo controller without a namespace' FAILED | |
Expected :controller to be "foo", but was "admin/foo" | |
Got {:format=>nil, :controller=>"admin/foo", :blogpost_id=>"1", :action=>"show"} | |
./spec/old/namespace_spec.rb:90: | |
10) | |
'namespaced resource(s) routes should match a get to /my_admin/blogposts to the blogposts controller with a custom patch setting' FAILED | |
Expected :controller to be "blogposts", but was "admin/blogposts" | |
Got {:format=>nil, :controller=>"admin/blogposts", :action=>"index"} | |
./spec/old/namespace_spec.rb:99: | |
11) | |
'namespaced resource(s) routes should match a get to /admin/blogposts/1/foo to the foo controller and the show action with namespace admin' FAILED | |
Expected :controller to be "foo", but was "admin/foo" | |
Got {:format=>nil, :controller=>"admin/foo", :blogpost_id=>"1", :action=>"show"} | |
./spec/old/namespace_spec.rb:110: | |
12) | |
'A route derived from the blocks of #match should inherit the :controller option.' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:11: | |
13) | |
'A route derived from the blocks of #match should inherit the :action option.' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:20: | |
14) | |
'A route derived from the blocks of #match should inherit the default :action of 'index'' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:29: | |
15) | |
'A route derived from the blocks of #match should make use of the :params option' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:38: | |
16) | |
'A route derived from the blocks of #match should inherit the parameters through many levels' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:49: | |
17) | |
'A route derived from the blocks of #match allows wrapping of nested routes all having shared argument with PREDEFINED VALUES' FAILED | |
Got {} | |
./spec/old/nested_matches_spec.rb:95: | |
18) | |
'nested resources routes should match a get to /blogposts/1/comments to the comments controller and index action with blogpost_id' FAILED | |
Got {} | |
./spec/old/nested_resources_spec.rb:23: | |
19) | |
'nested resources routes should match a get to /blogposts/1/comments/2/versions to the versions controller and index action with blogpost_id and comment_id' FAILED | |
Got {} | |
./spec/old/nested_resources_spec.rb:27: | |
20) | |
'nested resources routes should match a get to /users/1/comments to the comments controller and index action with user_id' FAILED | |
Got {} | |
./spec/old/nested_resources_spec.rb:31: | |
21) | |
'nested resources routes should match a get to /foo/comments to the comments controller and index action' FAILED | |
Got {} | |
./spec/old/nested_resources_spec.rb:35: | |
22) | |
'nested resources routes should match a get to /domains/merbivore_com/emails to the emails controller and index action with domain => 'merbivore_com' FAILED | |
Got {} | |
./spec/old/nested_resources_spec.rb:39: | |
23) | |
RuntimeError in 'Regex-based routes should process a simple regex' | |
Placeholder not found while compiling routes: :id | |
./spec/old/../../lib/router/route.rb:302:in `compile_param' | |
./spec/old/../../lib/router/route.rb:277:in `compile_params' | |
./spec/old/../../lib/router/route.rb:273:in `each' | |
./spec/old/../../lib/router/route.rb:273:in `compile_params' | |
./spec/old/../../lib/router/route.rb:127:in `compile' | |
./spec/old/../../lib/router/route.rb:29:in `initialize' | |
./spec/old/../../lib/router/behavior.rb:147:in `new' | |
./spec/old/../../lib/router/behavior.rb:147:in `to_route' | |
./spec/old/../../lib/router/behavior.rb:209:in `to' | |
./spec/old/../lib/helpers.rb:24:in `prepare_route' | |
./spec/old/../../lib/router.rb:50:in `prepare' | |
./spec/old/../lib/helpers.rb:24:in `prepare_route' | |
./spec/old/special_spec.rb:6: | |
Finished in 0.366222 seconds | |
65 examples, 23 failures | |
rake aborted! | |
Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"/Library/Ruby/Gems/1.8/gems/rspec-1.1.4/lib" "/Library/Ruby/Gems/1.8/gems/rspec-1.1.4/bin/spec" "spec/old/default_spec.rb" "spec/old/deferred_spec.rb" "spec/old/fixation_spec.rb" "spec/old/namespace_spec.rb" "spec/old/nested_matches_spec.rb" "spec/old/nested_resources_spec.rb" "spec/old/resource_spec.rb" "spec/old/resources_spec.rb" "spec/old/special_spec.rb" "spec/old/string_spec.rb" --format specdoc --colour failed | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment