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
This commit is contained in:
Jean-Philippe Lang
2016-07-21 16:58:59 +00:00
parent 55e89ae5bc
commit 29ddc82a11
17 changed files with 333 additions and 355 deletions

View File

@@ -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