view extra/sample_plugin/test/integration/routing_test.rb @ 1354:fc0fecf09eb9 bug_635

Restore our original repos settings page. But I don't think this is going to work well with the new routes configuration
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 18 Jul 2013 11:18:35 +0100
parents 433d4f72a19b
children 622f24f53b42
line wrap: on
line source

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