Failure in ee/spec/models/ee/project_spec.rb | Project scopes compliance framework scopes .compliance_framework_id_not_in when nil is passed as framework id is expected to eq [#<Project id:85 group10/project-85>>, #<Project id:86 group10/project-86>>, ...

Test metadata (don't modify)

Field Value
File ee/spec/models/ee/project_spec.rb
Description Project scopes compliance framework scopes .compliance_framework_id_not_in when nil is passed as framework id is expected to eq [#<Project id:85 group10/project-85>>, #<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>]
Hash 412eabd96c6ce7ec294c565db4f14b920c750c0fecf00637d193f79a28f028a6

Stack trace

Failure/Error: it { is_expected.to eq([project_with_framework_1, project_with_framework_2, project_without_framework]) }

  expected: [#<Project id:85 group10/project-85>>, #<Project id:86 group10/project-86>>, #<Project id:87 group10/project-87>>]
       got: #<ActiveRecord::Relation [#<Project id:87 group10/project-87>>, #<Project id:85 group10/project-85>>, #<Project id:86 group10/project-86>>]>

  (compared using ==)

  Diff:
  @@ -1,4 +1,4 @@
  -[#<Project id:85 group10/project-85>>,
  - #<Project id:86 group10/project-86>>,
  - #<Project id:87 group10/project-87>>]
  +[#<Project id:87 group10/project-87>>,
  + #<Project id:85 group10/project-85>>,
  + #<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)