diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 12:08:38 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 12:08:38 +0000 |
commit | 5ad0cf26551baff8f08af8562a8d45e6ec14d71a (patch) | |
tree | 57f1a6bad31bcd11efacd3fdfb9cc92f88fb6a86 /spec/presenters | |
parent | f47c768fad17d4c876e96524f83f8306f071db66 (diff) | |
download | gitlab-ce-5ad0cf26551baff8f08af8562a8d45e6ec14d71a.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/snippet_presenter_spec.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/presenters/snippet_presenter_spec.rb b/spec/presenters/snippet_presenter_spec.rb index 87f2220979c..e2117905559 100644 --- a/spec/presenters/snippet_presenter_spec.rb +++ b/spec/presenters/snippet_presenter_spec.rb @@ -62,8 +62,8 @@ describe SnippetPresenter do context 'with PersonalSnippet' do let(:snippet) { personal_snippet } - it 'checks read_personal_snippet' do - expect(presenter).to receive(:can?).with(user, :read_personal_snippet, snippet) + it 'checks read_snippet' do + expect(presenter).to receive(:can?).with(user, :read_snippet, snippet) subject end @@ -72,8 +72,8 @@ describe SnippetPresenter do context 'with ProjectSnippet' do let(:snippet) { project_snippet } - it 'checks read_project_snippet ' do - expect(presenter).to receive(:can?).with(user, :read_project_snippet, snippet) + it 'checks read_snippet ' do + expect(presenter).to receive(:can?).with(user, :read_snippet, snippet) subject end @@ -86,8 +86,8 @@ describe SnippetPresenter do context 'with PersonalSnippet' do let(:snippet) { personal_snippet } - it 'checks update_personal_snippet' do - expect(presenter).to receive(:can?).with(user, :update_personal_snippet, snippet) + it 'checks update_snippet' do + expect(presenter).to receive(:can?).with(user, :update_snippet, snippet) subject end @@ -96,8 +96,8 @@ describe SnippetPresenter do context 'with ProjectSnippet' do let(:snippet) { project_snippet } - it 'checks update_project_snippet ' do - expect(presenter).to receive(:can?).with(user, :update_project_snippet, snippet) + it 'checks update_snippet ' do + expect(presenter).to receive(:can?).with(user, :update_snippet, snippet) subject end @@ -110,8 +110,8 @@ describe SnippetPresenter do context 'with PersonalSnippet' do let(:snippet) { personal_snippet } - it 'checks admin_personal_snippet' do - expect(presenter).to receive(:can?).with(user, :admin_personal_snippet, snippet) + it 'checks admin_snippet' do + expect(presenter).to receive(:can?).with(user, :admin_snippet, snippet) subject end @@ -120,8 +120,8 @@ describe SnippetPresenter do context 'with ProjectSnippet' do let(:snippet) { project_snippet } - it 'checks admin_project_snippet ' do - expect(presenter).to receive(:can?).with(user, :admin_project_snippet, snippet) + it 'checks admin_snippet ' do + expect(presenter).to receive(:can?).with(user, :admin_snippet, snippet) subject end |