diff options
Diffstat (limited to 'spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/services/wiki_pages/destroy_service_shared_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |