diff options
author | Jack Jennings <jack@standard-library.com> | 2017-05-30 13:14:32 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-30 22:14:32 +0200 |
commit | 22cf18e16f2ff07e5cd6e90b53d1b038e1956c99 (patch) | |
tree | 770bcc6ea81b78fe71e606a70001ca6206a42781 /spec/policies | |
parent | 0ebe7d6d236d47bf805a920dc722897bafec7459 (diff) |
Fix incorrect visibility setter in StatusPolicySpec (#3456)
Diffstat (limited to 'spec/policies')
-rw-r--r-- | spec/policies/status_policy_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/policies/status_policy_spec.rb b/spec/policies/status_policy_spec.rb index b969988e9..8e85efb8e 100644 --- a/spec/policies/status_policy_spec.rb +++ b/spec/policies/status_policy_spec.rb @@ -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 |