diff options
Diffstat (limited to 'spec/support/shared_examples/services/wiki_pages')
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared_examples/services/wiki_pages/create_service_shared_examples.rb b/spec/support/shared_examples/services/wiki_pages/create_service_shared_examples.rb index 71bdd46572f..efcb83a34af 100644 --- a/spec/support/shared_examples/services/wiki_pages/create_service_shared_examples.rb +++ b/spec/support/shared_examples/services/wiki_pages/create_service_shared_examples.rb @@ -45,7 +45,7 @@ RSpec.shared_examples 'WikiPages::CreateService#execute' do |container_type| expect { service.execute }.to change { Event.count }.by 1 expect(Event.recent.first).to have_attributes( - action: Event::CREATED, + action: 'created', target: have_attributes(canonical_slug: page_title) ) end diff --git a/spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb b/spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb index 62541eb3da9..1231c012c31 100644 --- a/spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb +++ b/spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb @@ -27,7 +27,7 @@ RSpec.shared_examples 'WikiPages::DestroyService#execute' do |container_type| expect { service.execute(page) }.to change { Event.count }.by 1 expect(Event.recent.first).to have_attributes( - action: Event::DESTROYED, + action: 'destroyed', target: have_attributes(canonical_slug: page.slug) ) end diff --git a/spec/support/shared_examples/services/wiki_pages/update_service_shared_examples.rb b/spec/support/shared_examples/services/wiki_pages/update_service_shared_examples.rb index 0dfc99d043b..77354fec069 100644 --- a/spec/support/shared_examples/services/wiki_pages/update_service_shared_examples.rb +++ b/spec/support/shared_examples/services/wiki_pages/update_service_shared_examples.rb @@ -48,7 +48,7 @@ RSpec.shared_examples 'WikiPages::UpdateService#execute' do |container_type| expect { service.execute(page) }.to change { Event.count }.by 1 expect(Event.recent.first).to have_attributes( - action: Event::UPDATED, + action: 'updated', wiki_page: page, target_title: page.title ) |