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/news_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/news_controller_test.rb')
-rw-r--r-- | test/functional/news_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index 7d342605f..8dfa9cf42 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -50,7 +50,7 @@ class NewsControllerTest < ActionController::TestCase get :show, :id => 1 assert_response :success assert_template 'show' - assert_tag :tag => 'h2', :content => /eCookbook first release/ + assert_select 'h2', :text => /eCookbook first release/ end def test_show_should_show_attachments @@ -60,7 +60,7 @@ class NewsControllerTest < ActionController::TestCase get :show, :id => 1 assert_response :success - assert_tag 'a', :content => attachment.filename + assert_select 'a', :text => attachment.filename end def test_show_with_comments_in_reverse_order @@ -129,7 +129,7 @@ class NewsControllerTest < ActionController::TestCase assert_template 'new' assert_not_nil assigns(:news) assert assigns(:news).new_record? - assert_error_tag :content => /title #{ESCAPED_CANT} be blank/i + assert_select_error /title #{ESCAPED_CANT} be blank/i end def test_get_edit @@ -166,7 +166,7 @@ class NewsControllerTest < ActionController::TestCase put :update, :id => 1, :news => { :description => '' } assert_response :success assert_template 'edit' - assert_error_tag :content => /description #{ESCAPED_CANT} be blank/i + assert_select_error /description #{ESCAPED_CANT} be blank/i end def test_destroy |