From 358ba065a04f607620c2a1b05d8154f63cc0fec5 Mon Sep 17 00:00:00 2001 From: Yalaeddin Date: Wed, 10 Jan 2024 11:51:15 +0100 Subject: [PATCH] Cooriger le format de test un array --- spec/models/issue_query_patch_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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