diff options
Diffstat (limited to 'spec/policies/global_policy_spec.rb')
-rw-r--r-- | spec/policies/global_policy_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/policies/global_policy_spec.rb b/spec/policies/global_policy_spec.rb index f715ecae347..77727c6d13b 100644 --- a/spec/policies/global_policy_spec.rb +++ b/spec/policies/global_policy_spec.rb @@ -307,21 +307,21 @@ describe GlobalPolicy do end end - describe 'create_personal_snippet' do + describe 'create_snippet' do context 'when anonymous' do let(:current_user) { nil } - it { is_expected.not_to be_allowed(:create_personal_snippet) } + it { is_expected.not_to be_allowed(:create_snippet) } end context 'regular user' do - it { is_expected.to be_allowed(:create_personal_snippet) } + it { is_expected.to be_allowed(:create_snippet) } end context 'when external' do let(:current_user) { build(:user, :external) } - it { is_expected.not_to be_allowed(:create_personal_snippet) } + it { is_expected.not_to be_allowed(:create_snippet) } end end end |