From c4bf180a77a521f5c6398c8c57d9c1031d4293d7 Mon Sep 17 00:00:00 2001 From: Jack Jennings Date: Tue, 30 May 2017 13:14:32 -0700 Subject: [PATCH] Fix incorrect visibility setter in StatusPolicySpec (#3456) --- spec/policies/status_policy_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/policies/status_policy_spec.rb b/spec/policies/status_policy_spec.rb index b969988e93..8e85efb8e3 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