mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user