summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-10-29 04:03:52 +0000
committerGo MAEDA <maeda@farend.jp>2018-10-29 04:03:52 +0000
commit21034c5628d980bd18c6ef3f3ef898969745c390 (patch)
tree5ee7f27921cb24cfa7faa25da16523761e445a01 /test/functional/issues_controller_test.rb
parenta99c7104c16796894dd6485c63a3e5e8b821e5e5 (diff)
downloadredmine-21034c5628d980bd18c6ef3f3ef898969745c390.tar.gz
redmine-21034c5628d980bd18c6ef3f3ef898969745c390.zip
Filter issues after project status (#20081).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17607 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 17af8981c..62d96bd10 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -264,6 +264,25 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_equal [3, 5], issues_in_list.map(&:project_id).uniq.sort
end
+ def test_index_with_project_status_filter
+ project = Project.find(2)
+ project.close
+ project.save
+
+ get :index, :params => {
+ :set_filter => 1,
+ :f => ['project.status'],
+ :op => {'project.status' => '='},
+ :v => {'project.status' => ['1']}
+ }
+
+ assert_response :success
+
+ issues = issues_in_list.map(&:id).uniq.sort
+ assert_include 1, issues
+ assert_not_include 4, issues
+ end
+
def test_index_with_query
get :index, :params => {
:project_id => 1,