diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-18 21:26:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-18 21:26:30 +0000 |
commit | ec31b616982f137abdee8d0c6aa9dc4a6d103189 (patch) | |
tree | e4f5dc564be2b4ce5047a1f5acb2790fdc3b70ca /test/functional/auth_sources_controller_test.rb | |
parent | 1db54e228d98d20536133bf52a8af0ce67616dc3 (diff) | |
download | redmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.tar.gz redmine-ec31b616982f137abdee8d0c6aa9dc4a6d103189.zip |
Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15695 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/auth_sources_controller_test.rb')
-rw-r--r-- | test/functional/auth_sources_controller_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb index 521fcf817..1ad829655 100644 --- a/test/functional/auth_sources_controller_test.rb +++ b/test/functional/auth_sources_controller_test.rb @@ -26,21 +26,12 @@ class AuthSourcesControllerTest < Redmine::ControllerTest def test_index get :index - assert_response :success - assert_template 'index' - assert_not_nil assigns(:auth_sources) end def test_new get :new - assert_response :success - assert_template 'new' - - source = assigns(:auth_source) - assert_equal AuthSourceLdap, source.class - assert source.new_record? assert_select 'form#auth_source_form' do assert_select 'input[name=type][value=AuthSourceLdap]' @@ -72,16 +63,13 @@ class AuthSourcesControllerTest < Redmine::ControllerTest :auth_source => {:name => 'Test', :host => '', :port => '389', :attr_login => 'cn'} assert_response :success - assert_template 'new' end assert_select_error /host cannot be blank/i end def test_edit get :edit, :id => 1 - assert_response :success - assert_template 'edit' assert_select 'form#auth_source_form' do assert_select 'input[name=?]', 'auth_source[host]' @@ -117,7 +105,6 @@ class AuthSourcesControllerTest < Redmine::ControllerTest :auth_source => {:name => 'Renamed', :host => '', :port => '389', :attr_login => 'uid'} assert_response :success - assert_template 'edit' assert_select_error /host cannot be blank/i end |