diff --git a/spec/models/issue_query_patch_spec.rb b/spec/models/issue_query_patch_spec.rb index a865ae2..8d0a560 100644 --- a/spec/models/issue_query_patch_spec.rb +++ b/spec/models/issue_query_patch_spec.rb @@ -28,9 +28,10 @@ def find_issues_with_query(query) query = IssueQuery.new(:name => '_') filter_name = "updated_by_organization" + query.filters = { filter_name => {:operator => '=', :values => [@org.id.to_s] }} - expect(find_issues_with_query(query).map(&:id).sort).to include([2, 3]) + expect(find_issues_with_query(query).map(&:id).sort).to include(2, 3) end it "operator equal ! , one organization" do @@ -42,7 +43,7 @@ def find_issues_with_query(query) filter_name = "updated_by_organization" query.filters = { filter_name => {:operator => '!', :values => [@org.id.to_s] }} - expect(find_issues_with_query(query).map(&:id).sort).to_not include([2, 3]) + expect(find_issues_with_query(query).map(&:id).sort).to_not include(2, 3) end it "operator equal = , multi organizations" do