projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6659fb9
)
Add a routing test for /id
author
Tom Hughes
<tom@compton.nu>
Tue, 7 May 2013 13:52:08 +0000
(14:52 +0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 7 May 2013 13:52:08 +0000
(14:52 +0100)
test/functional/site_controller_test.rb
patch
|
blob
|
history
diff --git
a/test/functional/site_controller_test.rb
b/test/functional/site_controller_test.rb
index 5fc3a02149e88146b2d5bfe383ec28ae2cbb6d72..47bc278066f2aa0a195467846977628e341ec6c2 100644
(file)
--- a/
test/functional/site_controller_test.rb
+++ b/
test/functional/site_controller_test.rb
@@
-58,6
+58,10
@@
class SiteControllerTest < ActionController::TestCase
{ :path => "/preview/formatname", :method => :get },
{ :controller => "site", :action => "preview", :format => "formatname" }
)
+ assert_routing(
+ { :path => "/id", :method => :get },
+ { :controller => "site", :action => "id" }
+ )
end
## Lets check that we can get all the pages without any errors