summaryrefslogtreecommitdiffstats
path: root/test/functional/files_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/files_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/files_controller_test.rb')
-rw-r--r--test/functional/files_controller_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 23231ff49..a24187db5 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -39,8 +39,6 @@ class FilesControllerTest < Redmine::ControllerTest
def test_index
get :index, :project_id => 1
assert_response :success
- assert_template 'index'
- assert_not_nil assigns(:containers)
# file attached to the project
assert_select 'a[href=?]', '/attachments/download/8/project_file.zip', :text => 'project_file.zip'
@@ -53,7 +51,6 @@ class FilesControllerTest < Redmine::ControllerTest
@request.session[:user_id] = 2
get :new, :project_id => 1
assert_response :success
- assert_template 'new'
assert_select 'select[name=?]', 'version_id'
end
@@ -63,7 +60,6 @@ class FilesControllerTest < Redmine::ControllerTest
@request.session[:user_id] = 2
get :new, :project_id => 1
assert_response :success
- assert_template 'new'
assert_select 'select[name=?]', 'version_id', 0
end
@@ -112,8 +108,7 @@ class FilesControllerTest < Redmine::ControllerTest
assert_no_difference 'Attachment.count' do
post :create, :project_id => 1, :version_id => ''
- assert_response 200
- assert_template 'new'
+ assert_response :success
end
assert_select 'div.error', 'File is invalid'
end