Skip to content
Snippets Groups Projects
Commit 22cf18e1 authored by Jack Jennings's avatar Jack Jennings Committed by Eugen Rochko
Browse files

Fix incorrect visibility setter in StatusPolicySpec (#3456)

parent 0ebe7d6d
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ RSpec.describe StatusPolicy, type: :model do
permissions :show? do
it 'grants access when direct and account is viewer' do
status.visibility = :direct
expect(subject).to permit(status.account, status)
end
......@@ -42,7 +43,7 @@ RSpec.describe StatusPolicy, type: :model do
end
it 'grants access when private and account is viewer' do
status.visibility = :direct
status.visibility = :private
expect(subject).to permit(status.account, status)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment