summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 07:45:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-10 07:45:54 +0000
commit3cbbba85134b76e7a441405d9130fec0568dbaba (patch)
treeae1c81d175449a299d48c4afc748a56b966afc58 /test/functional
parent4566ac1ee9ee7ce0b41fcf72f855d268f45d0385 (diff)
downloadredmine-3cbbba85134b76e7a441405d9130fec0568dbaba.tar.gz
redmine-3cbbba85134b76e7a441405d9130fec0568dbaba.zip
Merged r15608 (#23206).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15613 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index e2b06c87a..6a35d6950 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -488,6 +488,9 @@ class IssuesControllerTest < ActionController::TestCase
assert_select 'input[name=?][value=?]', 'sort', 'status'
end
+
+ get :index, :project_id => 1, :set_filter => "1", :f => []
+ assert_select '#csv-export-form input[name=?][value=?]', 'f[]', ''
end
def test_index_csv
@@ -507,6 +510,14 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 'text/csv; header=present', @response.content_type
end
+ def test_index_csv_without_any_filters
+ @request.session[:user_id] = 1
+ Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 5, :subject => 'Closed issue', :author_id => 1)
+ get :index, :set_filter => 1, :f => [], :format => 'csv'
+ assert_response :success
+ assert_equal Issue.count, assigns(:issues).count
+ end
+
def test_index_csv_with_description
Issue.generate!(:description => 'test_index_csv_with_description')