Skip to content

Commit

Permalink
Cooriger le format de test un array
Browse files Browse the repository at this point in the history
  • Loading branch information
Yalaeddin committed Jan 10, 2024
1 parent 748a8cb commit 358ba06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/models/issue_query_patch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 358ba06

Please sign in to comment.