summaryrefslogtreecommitdiffstats
path: root/test/functional/settings_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-21 16:58:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-21 16:58:59 +0000
commit29ddc82a11f30f7fcb917dd062fc38f48640b4ea (patch)
treef7d58fb646b26808462fe1dc91888a68d8ecdcd2 /test/functional/settings_controller_test.rb
parent55e89ae5bc815e777165de12fdd79545cbf42c5a (diff)
downloadredmine-29ddc82a11f30f7fcb917dd062fc38f48640b4ea.tar.gz
redmine-29ddc82a11f30f7fcb917dd062fc38f48640b4ea.zip
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15724 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/settings_controller_test.rb')
-rw-r--r--test/functional/settings_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index eeb719b30..9af3ebca7 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -34,13 +34,13 @@ class SettingsControllerTest < Redmine::ControllerTest
def test_index
get :index
assert_response :success
- assert_template 'edit'
+
+ assert_select 'input[name=?][value=?]', 'settings[app_title]', Setting.app_title
end
def test_get_edit
get :edit
assert_response :success
- assert_template 'edit'
assert_select 'input[name=?][value=""]', 'settings[enabled_scm][]'
end
@@ -195,7 +195,7 @@ class SettingsControllerTest < Redmine::ControllerTest
get :plugin, :params => {:id => 'foo'}
assert_response :success
- assert_template 'plugin'
+
assert_select 'form[action="/settings/plugin/foo"]' do
assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
end