Commit 63ccf9d5 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Add receive stub for wiki specs

parent dac155c4
......@@ -412,7 +412,6 @@ RSpec/RepeatedExample:
- 'spec/models/concerns/issuable_spec.rb'
- 'spec/models/member_spec.rb'
- 'spec/models/project_services/chat_message/pipeline_message_spec.rb'
- 'spec/models/wiki_page_spec.rb'
- 'spec/routing/admin_routing_spec.rb'
- 'spec/rubocop/cop/migration/update_large_table_spec.rb'
- 'spec/services/notification_service_spec.rb'
......
---
title: Refactor duplicate specs in wiki page specs
merge_request: 28551
author: Rajendra Kadam
type: added
......@@ -577,6 +577,8 @@ describe WikiPage do
end
it 'returns false when version is nil' do
expect(latest_page).to receive(:version) { nil }
expect(latest_page.historical?).to be_falsy
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment