diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-04 10:07:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-04 10:07:19 +0000 |
commit | a6d4cdb25bd2270483746a9af5f4992fbd1fe9a8 (patch) | |
tree | 6014a79c06b1d6244ea547db6b9db6dc35675059 | |
parent | 1f2c5ac08eb5d8752a52cc5d1ec9fba66e57696d (diff) | |
download | redmine-a6d4cdb25bd2270483746a9af5f4992fbd1fe9a8.tar.gz redmine-a6d4cdb25bd2270483746a9af5f4992fbd1fe9a8.zip |
use escaped "can't" constant at TrackersControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12792 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/issues_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index cc03b7d5f..4f2457d39 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1925,7 +1925,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'new' issue = assigns(:issue) assert_not_nil issue - assert_error_tag :content => /Database can't be blank/ + assert_error_tag :content => /Database #{ESCAPED_CANT} be blank/ end def test_create_should_validate_required_fields @@ -1949,8 +1949,8 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'new' end - assert_error_tag :content => /Due date can't be blank/i - assert_error_tag :content => /Bar can't be blank/i + assert_error_tag :content => /Due date #{ESCAPED_CANT} be blank/i + assert_error_tag :content => /Bar #{ESCAPED_CANT} be blank/i end def test_create_should_ignore_readonly_fields @@ -3166,7 +3166,7 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' - assert_error_tag :descendant => {:content => /Activity can't be blank/} + assert_error_tag :descendant => {:content => /Activity #{ESCAPED_CANT} be blank/} assert_select 'textarea[name=?]', 'issue[notes]', :text => notes assert_select 'input[name=?][value=?]', 'time_entry[hours]', '2z' end @@ -3184,8 +3184,8 @@ class IssuesControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' - assert_error_tag :descendant => {:content => /Activity can't be blank/} - assert_error_tag :descendant => {:content => /Hours can't be blank/} + assert_error_tag :descendant => {:content => /Activity #{ESCAPED_CANT} be blank/} + assert_error_tag :descendant => {:content => /Hours #{ESCAPED_CANT} be blank/} assert_select 'textarea[name=?]', 'issue[notes]', :text => notes assert_select 'input[name=?][value=?]', 'time_entry[comments]', 'this is my comment' end |