Declare new block path on resources
This commit is contained in:
parent
1d31573b03
commit
3b0748831a
3 changed files with 7 additions and 8 deletions
|
@ -5,7 +5,7 @@ class UserBlocksControllerTest < ActionDispatch::IntegrationTest
|
|||
# test all routes which lead to this controller
|
||||
def test_routes
|
||||
assert_routing(
|
||||
{ :path => "/blocks/new/username", :method => :get },
|
||||
{ :path => "/user_blocks/new/username", :method => :get },
|
||||
{ :controller => "user_blocks", :action => "new", :display_name => "username" }
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue