about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--spec/policies/status_policy_spec.rb3
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