mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix incorrect visibility setter in StatusPolicySpec (#3456)
This commit is contained in:
parent
0ebe7d6d23
commit
22cf18e16f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user