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 31, 2025
1 parent 7f287aa commit ea1ca41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/event/approval_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,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 ea1ca41

Please sign in to comment.