diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-22 09:38:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-22 09:38:21 +0000 |
commit | f3e573b5f891c71f9395562a3f8747ecec801091 (patch) | |
tree | 7987fd3efa8ae985b532a03e7e0f529fa997258d /test/functional/trackers_controller_test.rb | |
parent | 3602cd637c9ece4e0caa42c335acb7dce719a20e (diff) | |
download | redmine-f3e573b5f891c71f9395562a3f8747ecec801091.tar.gz redmine-f3e573b5f891c71f9395562a3f8747ecec801091.zip |
Replaced remaining #assert_tag with #assert_select.
git-svn-id: http://svn.redmine.org/redmine/trunk@13624 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/trackers_controller_test.rb')
-rw-r--r-- | test/functional/trackers_controller_test.rb | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb index ca2619e1f..e69700dfc 100644 --- a/test/functional/trackers_controller_test.rb +++ b/test/functional/trackers_controller_test.rb @@ -89,7 +89,7 @@ class TrackersControllerTest < ActionController::TestCase end assert_response :success assert_template 'new' - assert_error_tag :content => /name #{ESCAPED_CANT} be blank/i + assert_select_error /name #{ESCAPED_CANT} be blank/i end def test_edit @@ -99,17 +99,10 @@ class TrackersControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' - assert_tag :input, :attributes => { :name => 'tracker[project_ids][]', - :value => '1', - :checked => 'checked' } + assert_select 'input[name=?][value="1"][checked=checked]', 'tracker[project_ids][]' + assert_select 'input[name=?][value="2"]:not([checked])', 'tracker[project_ids][]' - assert_tag :input, :attributes => { :name => 'tracker[project_ids][]', - :value => '2', - :checked => nil } - - assert_tag :input, :attributes => { :name => 'tracker[project_ids][]', - :value => '', - :type => 'hidden'} + assert_select 'input[name=?][value=""][type=hidden]', 'tracker[project_ids][]' end def test_edit_should_check_core_fields @@ -154,7 +147,7 @@ class TrackersControllerTest < ActionController::TestCase put :update, :id => 1, :tracker => { :name => '' } assert_response :success assert_template 'edit' - assert_error_tag :content => /name #{ESCAPED_CANT} be blank/i + assert_select_error /name #{ESCAPED_CANT} be blank/i end def test_move_lower |