diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-28 18:08:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-28 18:08:02 +0300 |
commit | 1f1e53f43f87cada9b515571cc973e9eadcbc4e4 (patch) | |
tree | d9bca1bda729b495601634947665f11279b5d6cf /spec/services/wiki_pages | |
parent | a83a97f60432c6c352af80d55339e9fe45b63307 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/wiki_pages')
-rw-r--r-- | spec/services/wiki_pages/event_create_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/wiki_pages/event_create_service_spec.rb b/spec/services/wiki_pages/event_create_service_spec.rb index cf971b0a02c..c725c67d7a7 100644 --- a/spec/services/wiki_pages/event_create_service_spec.rb +++ b/spec/services/wiki_pages/event_create_service_spec.rb @@ -11,7 +11,7 @@ describe WikiPages::EventCreateService do describe '#execute' do let_it_be(:page) { create(:wiki_page, project: project) } let(:slug) { generate(:sluggified_title) } - let(:action) { Event::CREATED } + let(:action) { :created } let(:response) { subject.execute(slug, page, action) } context 'feature flag is not enabled' do @@ -38,7 +38,7 @@ describe WikiPages::EventCreateService do end context 'the action is illegal' do - let(:action) { Event::WIKI_ACTIONS.max + 1 } + let(:action) { :illegal_action } it 'returns an error' do expect(response).to be_error @@ -58,7 +58,7 @@ describe WikiPages::EventCreateService do end context 'the action is a deletion' do - let(:action) { Event::DESTROYED } + let(:action) { :destroyed } it 'does not synchronize the wiki metadata timestamps with the git commit' do expect_next_instance_of(WikiPage::Meta) do |instance| @@ -74,7 +74,7 @@ describe WikiPages::EventCreateService do end it 'returns an event in the payload' do - expect(response.payload).to include(event: have_attributes(author: user, wiki_page?: true, action: action)) + expect(response.payload).to include(event: have_attributes(author: user, wiki_page?: true, action: 'created')) end it 'records the slug for the page' do |