annotate extra/sample_plugin/test/integration/routing_test.rb @ 1287:1c3e2fb6793a redmine-2.2-integration

Fixed bug in human_attribute_name method; better handling of nested model errors.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 17 May 2013 17:45:36 +0100
parents 433d4f72a19b
children 622f24f53b42
rev   line source
Chris@1115 1
Chris@1115 2 require File.expand_path(File.dirname(__FILE__) + '../../../../../test/test_helper')
Chris@1115 3
Chris@1115 4 class SamplePluginRoutingTest < ActionController::IntegrationTest
Chris@1115 5 def test_example
Chris@1115 6 assert_routing(
Chris@1115 7 { :method => 'get', :path => "/projects/1234/hello" },
Chris@1115 8 { :controller => 'example', :action => 'say_hello',
Chris@1115 9 :id => '1234' }
Chris@1115 10 )
Chris@1115 11 end
Chris@1115 12 end