summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-08 17:14:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-08 17:14:40 +0000
commit712d08a5d31f09bf5d0f90255d8a4024bd3a2f3c (patch)
tree4524ada54d3f08fa56e1d119804e8dcf83d3f786 /test/functional
parent85097a89a16ce2d98b272fa89cc66fae7be00a0f (diff)
downloadredmine-712d08a5d31f09bf5d0f90255d8a4024bd3a2f3c.tar.gz
redmine-712d08a5d31f09bf5d0f90255d8a4024bd3a2f3c.zip
Adds assertions for import result.
git-svn-id: http://svn.redmine.org/redmine/trunk@15497 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/imports_controller_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index 9c8dafa34..5c41c10d7 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -184,6 +184,8 @@ class ImportsControllerTest < ActionController::TestCase
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
end
@@ -197,5 +199,6 @@ class ImportsControllerTest < ActionController::TestCase
assert_response :success
assert_template 'show'
assert_select 'table#unsaved-items'
+ assert_select 'table#unsaved-items tbody tr', import.unsaved_items.count
end
end