Skip to content

Commit

Permalink
Merge pull request #1251 from concord-consortium/187185134-fix-specs
Browse files Browse the repository at this point in the history
Fix cohort policy specs [PT-187185134]
  • Loading branch information
pjanik authored Mar 25, 2024
2 parents 29dc4df + 818fa6e commit c213893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rails/spec/policies/admin/cohort_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
user.add_role_for_project('researcher', @project)
end

it 'does not allow access to any cohorts' do
expect(scope.to_a.length).to eq 0
it 'allows access to project cohorts' do
expect(scope.to_a).to match_array([@cohort1])
end
end

Expand Down

0 comments on commit c213893

Please sign in to comment.