Skip to content

Commit

Permalink
Ignore array order in spec assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed Jan 30, 2025
1 parent 8ec2faa commit 6ea700d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/models/event/approval_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def create_approval(layer, role, group_name, attrs = {}, course = events(:top_co
other_course = Fabricate(:pbs_course)
other = create_approval('bund', Group::Bund::Geschaeftsleitung, :bund, { rejected: true }, other_course)

expect(Event::Approval.completed(events(:top_course))).to eq [approved, rejected]
expect(Event::Approval.completed(events(:top_course))).to match_array [approved, rejected]
expect(Event::Approval.completed(other_course)).to eq [other]
end
end

0 comments on commit 6ea700d

Please sign in to comment.