Fix incorrect visibility setter in StatusPolicySpec (#3456)

lolsob-rspec
Jack Jennings 2017-05-30 13:14:32 -07:00 committed by Eugen Rochko
parent 18c81c74e5
commit c4bf180a77
1 changed files with 2 additions and 1 deletions

View File

@ -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