summaryrefslogtreecommitdiffstats
path: root/test/functional/gantts_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-20 19:57:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-20 19:57:06 +0000
commit36d487fe505fbad9b0bc18a4d8f7b435a211be4a (patch)
tree7bf75212c0d2a0ea45db6ea1ebc7fa8460a34648 /test/functional/gantts_controller_test.rb
parent2a43f1adbcbe155eb7c3c4a60c5c0c289dec2a0f (diff)
downloadredmine-36d487fe505fbad9b0bc18a4d8f7b435a211be4a.tar.gz
redmine-36d487fe505fbad9b0bc18a4d8f7b435a211be4a.zip
Replaced some #assert_tag with #assert_select.
git-svn-id: http://svn.redmine.org/redmine/trunk@13620 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/gantts_controller_test.rb')
-rw-r--r--test/functional/gantts_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index 5b7135159..147100b08 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -73,11 +73,11 @@ class GanttsControllerTest < ActionController::TestCase
get :show
assert_response :success
assert_template 'gantts/show'
- assert_tag 'a', :content => /eCookbook/
+ assert_select 'a', :text => /eCookbook/
# Root private project
- assert_no_tag 'a', {:content => /OnlineStore/}
+ assert_select 'a', :text => /OnlineStore/, :count => 0
# Private children of a public project
- assert_no_tag 'a', :content => /Private child of eCookbook/
+ assert_select 'a', :text => /Private child of eCookbook/, :count => 0
end
def test_gantt_should_display_relations