diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-28 10:11:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-28 10:11:42 +0000 |
commit | 33d41583bb4e4b7fc2ac5110e9e66f2a9c485a0b (patch) | |
tree | 4ad1bb8f1b0947decd688f94f1fffcaee693ff02 /test | |
parent | dab836a3853c71eff69646a95f991d283863012e (diff) | |
download | redmine-33d41583bb4e4b7fc2ac5110e9e66f2a9c485a0b.tar.gz redmine-33d41583bb4e4b7fc2ac5110e9e66f2a9c485a0b.zip |
Rails3: test: template must be specified as controller/action not with their extension any more
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7543 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/gantts_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb index f7ec0c4fd..700738ed0 100644 --- a/test/functional/gantts_controller_test.rb +++ b/test/functional/gantts_controller_test.rb @@ -18,7 +18,7 @@ class GanttsControllerTest < ActionController::TestCase get :show, :project_id => 1 assert_response :success - assert_template 'show.html.erb' + assert_template 'gantts/show' assert_not_nil assigns(:gantt) # Issue with start and due dates i = Issue.find(1) @@ -34,7 +34,7 @@ class GanttsControllerTest < ActionController::TestCase get :show, :project_id => 1 assert_response :success - assert_template 'show.html.erb' + assert_template 'gantts/show' assert_not_nil assigns(:gantt) end @@ -44,14 +44,14 @@ class GanttsControllerTest < ActionController::TestCase get :show, :project_id => 1 assert_response :success - assert_template 'show.html.erb' + assert_template 'gantts/show' assert_not_nil assigns(:gantt) end should "work cross project" do get :show assert_response :success - assert_template 'show.html.erb' + assert_template 'gantts/show' assert_not_nil assigns(:gantt) assert_not_nil assigns(:gantt).query assert_nil assigns(:gantt).project @@ -60,7 +60,7 @@ class GanttsControllerTest < ActionController::TestCase should "not disclose private projects" do get :show assert_response :success - assert_template 'show.html.erb' + assert_template 'gantts/show' assert_tag 'a', :content => /eCookbook/ # Root private project |