summaryrefslogtreecommitdiffstats
path: root/test/functional/imports_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-18 21:26:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-18 21:26:30 +0000
commitec31b616982f137abdee8d0c6aa9dc4a6d103189 (patch)
treee4f5dc564be2b4ce5047a1f5acb2790fdc3b70ca /test/functional/imports_controller_test.rb
parent1db54e228d98d20536133bf52a8af0ce67616dc3 (diff)
downloadredmine-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/imports_controller_test.rb')
-rw-r--r--test/functional/imports_controller_test.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index 526e9e874..3b271b0ce 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -44,7 +44,6 @@ class ImportsControllerTest < Redmine::ControllerTest
def test_new_should_display_the_upload_form
get :new
assert_response :success
- assert_template 'new'
assert_select 'input[name=?]', 'file'
end
@@ -62,7 +61,10 @@ class ImportsControllerTest < Redmine::ControllerTest
import = generate_import
get :settings, :id => import.to_param
assert_response :success
- assert_template 'settings'
+ assert_select 'select[name=?]', 'import_settings[separator]'
+ assert_select 'select[name=?]', 'import_settings[wrapper]'
+ assert_select 'select[name=?]', 'import_settings[encoding]'
+ assert_select 'select[name=?]', 'import_settings[date_format]'
end
def test_post_settings_should_update_settings
@@ -107,7 +109,6 @@ class ImportsControllerTest < Redmine::ControllerTest
get :mapping, :id => import.to_param
assert_response :success
- assert_template 'mapping'
assert_select 'select[name=?]', 'import_settings[mapping][subject]' do
assert_select 'option', 4
@@ -139,7 +140,7 @@ class ImportsControllerTest < Redmine::ControllerTest
get :run, :id => import
assert_response :success
- assert_template 'run'
+ assert_select '#import-progress'
end
def test_post_run_should_import_the_file
@@ -183,7 +184,7 @@ class ImportsControllerTest < Redmine::ControllerTest
get :show, :id => import.to_param
assert_response :success
- assert_template 'show'
+
assert_select 'ul#saved-items'
assert_select 'ul#saved-items li', import.saved_items.count
assert_select 'table#unsaved-items', 0
@@ -197,7 +198,7 @@ class ImportsControllerTest < Redmine::ControllerTest
get :show, :id => import.to_param
assert_response :success
- assert_template 'show'
+
assert_select 'table#unsaved-items'
assert_select 'table#unsaved-items tbody tr', import.unsaved_items.count
end