add routing test to sample plugin

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10656 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-10-13 16:22:04 +00:00
parent 9581afe060
commit ff2d374a14
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
require File.expand_path(File.dirname(__FILE__) + '../../../../../test/test_helper')
class SamplePluginRoutingTest < ActionController::IntegrationTest
def test_example
assert_routing(
{ :method => 'get', :path => "/projects/1234/hello" },
{ :controller => 'example', :action => 'say_hello',
:id => '1234' }
)
end
end