Failure in ee/spec/models/ee/project_spec.rb | Project scopes compliance framework scopes .compliance_framework_id_not_in when a valid framework id is passed is expected to eq [#<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>]
### Test metadata (don't modify) | Field | Value | | ------ | ------ | | File | [`ee/spec/models/ee/project_spec.rb`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/spec/models/ee/project_spec.rb#565) | | Description | `Project scopes compliance framework scopes .compliance_framework_id_not_in when a valid framework id is passed is expected to eq [#<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>]` | | Hash | `eb0fc62f6b7c3258d6bd43691d43757194a36caa706031cba0293ea57c5a3ee2` | ### Stack trace ``` Failure/Error: it { is_expected.to eq([project_with_framework_2, project_without_framework]) } expected: [#<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>] got: #<ActiveRecord::Relation [#<Project id:87 group10/project-87>>, #<Project id:86 group10/project-86>>]> (compared using ==) Diff: @@ -1 +1 @@ -[#<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>] +[#<Project id:87 group10/project-87>>, #<Project id:86 group10/project-86>>] ``` ### Reports (1) 1. 2023-07-12: https://gitlab.com/gitlab-org/gitlab/-/jobs/4637148589 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/928434912)
issue