summaryrefslogtreecommitdiffstats
path: root/test/functional/settings_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-22 09:38:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-22 09:38:21 +0000
commitf3e573b5f891c71f9395562a3f8747ecec801091 (patch)
tree7987fd3efa8ae985b532a03e7e0f529fa997258d /test/functional/settings_controller_test.rb
parent3602cd637c9ece4e0caa42c335acb7dce719a20e (diff)
downloadredmine-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/settings_controller_test.rb')
-rw-r--r--test/functional/settings_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index e7fe29780..615eae47d 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -37,7 +37,7 @@ class SettingsControllerTest < ActionController::TestCase
assert_response :success
assert_template 'edit'
- assert_tag 'input', :attributes => {:name => 'settings[enabled_scm][]', :value => ''}
+ assert_select 'input[name=?][value=""]', 'settings[enabled_scm][]'
end
def test_get_edit_should_preselect_default_issue_list_columns
@@ -146,9 +146,9 @@ class SettingsControllerTest < ActionController::TestCase
get :plugin, :id => 'foo'
assert_response :success
assert_template 'plugin'
- assert_tag 'form', :attributes => {:action => '/settings/plugin/foo'},
- :descendant => {:tag => 'input', :attributes => {:name => 'settings[sample_setting]', :value => 'Plugin setting value'}}
-
+ assert_select 'form[action="/settings/plugin/foo"]' do
+ assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
+ end
ensure
Redmine::Plugin.unregister(:foo)
end