From ff2d374a14434c465fcd66e9b2d44dc9ceeb70aa Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 13 Oct 2012 16:22:04 +0000 Subject: [PATCH] add routing test to sample plugin git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10656 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- extra/sample_plugin/test/integration/routing_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 extra/sample_plugin/test/integration/routing_test.rb diff --git a/extra/sample_plugin/test/integration/routing_test.rb b/extra/sample_plugin/test/integration/routing_test.rb new file mode 100644 index 000000000..3ddfe5189 --- /dev/null +++ b/extra/sample_plugin/test/integration/routing_test.rb @@ -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