From 22cf18e16f2ff07e5cd6e90b53d1b038e1956c99 Mon Sep 17 00:00:00 2001 From: Jack Jennings Date: Tue, 30 May 2017 13:14:32 -0700 Subject: Fix incorrect visibility setter in StatusPolicySpec (#3456) --- spec/policies/status_policy_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec') 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 -- cgit