Commit b6d5f331 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'refator-wiki-page' into 'master'

Add receive stub for wiki specs

See merge request gitlab-org/gitlab!28551
parents f2aed015 63ccf9d5
...@@ -412,7 +412,6 @@ RSpec/RepeatedExample: ...@@ -412,7 +412,6 @@ RSpec/RepeatedExample:
- 'spec/models/concerns/issuable_spec.rb' - 'spec/models/concerns/issuable_spec.rb'
- 'spec/models/member_spec.rb' - 'spec/models/member_spec.rb'
- 'spec/models/project_services/chat_message/pipeline_message_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/routing/admin_routing_spec.rb'
- 'spec/rubocop/cop/migration/update_large_table_spec.rb' - 'spec/rubocop/cop/migration/update_large_table_spec.rb'
- 'spec/services/notification_service_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 ...@@ -577,6 +577,8 @@ describe WikiPage do
end end
it 'returns false when version is nil' do it 'returns false when version is nil' do
expect(latest_page).to receive(:version) { nil }
expect(latest_page.historical?).to be_falsy expect(latest_page.historical?).to be_falsy
end 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