Mercurial > hg > soundsoftware-site
comparison test/functional/issue_statuses_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
60 | 60 |
61 def test_create_with_failure | 61 def test_create_with_failure |
62 post :create, :issue_status => {:name => ''} | 62 post :create, :issue_status => {:name => ''} |
63 assert_response :success | 63 assert_response :success |
64 assert_template 'new' | 64 assert_template 'new' |
65 assert_error_tag :content => /name can't be blank/i | 65 assert_error_tag :content => /name #{ESCAPED_CANT} be blank/i |
66 end | 66 end |
67 | 67 |
68 def test_edit | 68 def test_edit |
69 get :edit, :id => '3' | 69 get :edit, :id => '3' |
70 assert_response :success | 70 assert_response :success |
80 | 80 |
81 def test_update_with_failure | 81 def test_update_with_failure |
82 put :update, :id => '3', :issue_status => {:name => ''} | 82 put :update, :id => '3', :issue_status => {:name => ''} |
83 assert_response :success | 83 assert_response :success |
84 assert_template 'edit' | 84 assert_template 'edit' |
85 assert_error_tag :content => /name can't be blank/i | 85 assert_error_tag :content => /name #{ESCAPED_CANT} be blank/i |
86 end | 86 end |
87 | 87 |
88 def test_destroy | 88 def test_destroy |
89 Issue.delete_all("status_id = 1") | 89 Issue.delete_all("status_id = 1") |
90 | 90 |