Commit c56042e10127d44ad580169b193bc557388b4a01

Authored by JoenioCosta
1 parent b5a1db58

ActionItem392: routing dont math profile with dot or dash


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1973 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
test/integration/routing_test.rb
... ... @@ -114,4 +114,12 @@ class RoutingTest < ActionController::IntegrationTest
114 114 assert_routing('/directory/my-asset/f/a/b/c', :controller => 'search', :action => 'directory', :asset => 'my-asset', :initial => 'f', :category_path => [ 'a', 'b', 'c'])
115 115 end
116 116  
  117 + def test_content_view_with_dot
  118 + assert_routing('/ze.withdot', :controller => 'content_viewer', :action => 'view_page', :profile => 'ze.withdot', :page => [])
  119 + end
  120 +
  121 + def test_content_view_with_dash
  122 + assert_routing('/ze-withdash', :controller => 'content_viewer', :action => 'view_page', :profile => 'ze.withdash', :page => [])
  123 + end
  124 +
117 125 end
... ...