Commit 25c93023 authored by Huzaifa Iftikhar's avatar Huzaifa Iftikhar Committed by Bob Van Landuyt

Fix EmptyLineAfterFinalLetItBe offenses in spec/models/wiki_page

parent 468b221d
......@@ -684,8 +684,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
- spec/models/terraform/state_spec.rb
- spec/models/u2f_registration_spec.rb
- spec/models/user_spec.rb
- spec/models/wiki_page/meta_spec.rb
- spec/models/wiki_page_spec.rb
- spec/requests/api/api_spec.rb
- spec/requests/api/award_emoji_spec.rb
- spec/requests/api/branches_spec.rb
......
---
title: Fix EmptyLineAfterFinalLetItBe offenses in spec/models/wiki_page
merge_request: 58388
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
......@@ -124,6 +124,7 @@ RSpec.describe WikiPage::Meta do
context 'the slug is already in the DB (but not canonical)' do
let_it_be(:slug_record) { create(:wiki_page_slug, wiki_page_meta: meta) }
let(:slug) { slug_record.slug }
let(:query_limit) { 4 }
......@@ -132,6 +133,7 @@ RSpec.describe WikiPage::Meta do
context 'the slug is already in the DB (and canonical)' do
let_it_be(:slug_record) { create(:wiki_page_slug, :canonical, wiki_page_meta: meta) }
let(:slug) { slug_record.slug }
let(:query_limit) { 4 }
......
......@@ -640,6 +640,7 @@ RSpec.describe WikiPage do
let_it_be(:existing_page) { create_wiki_page(title: 'test page') }
let_it_be(:directory_page) { create_wiki_page(title: 'parent directory/child page') }
let_it_be(:page_with_special_characters) { create_wiki_page(title: 'test+page') }
let(:untitled_page) { described_class.new(wiki) }
where(:page, :title, :changed) do
......
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