Skip to content

Commit

Permalink
fix: fix specs [PT-187153689]
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanik committed Mar 25, 2024
1 parent dffb94a commit a48321a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rails/spec/policies/admin/project_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@
end
end

describe 'classes' do
describe 'research_classes' do
describe 'a regular user' do
it 'should not permit access to classes page' do
expect(policy.classes?).to be false
expect(policy.research_classes?).to be false
end
end

Expand All @@ -203,7 +203,7 @@
allow(user).to receive(:has_role?).with('admin').and_return(true)
end
it 'should permit access to classses page' do
expect(policy.classes?).to be true
expect(policy.research_classes?).to be true
end
end

Expand All @@ -212,7 +212,7 @@
allow(user).to receive(:is_project_admin?).with(project).and_return(true)
end
it 'should permit access to classses page' do
expect(policy.classes?).to be true
expect(policy.research_classes?).to be true
end
end

Expand Down

0 comments on commit a48321a

Please sign in to comment.