Declare new block path on resources

This commit is contained in:
Anton Khorev 2024-12-24 00:58:57 +03:00
parent 1d31573b03
commit 3b0748831a
3 changed files with 7 additions and 8 deletions

View file

@ -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" }
)