Skip to content
Snippets Groups Projects

Remove wiki_front_matter FF

Merged David O'Regan requested to merge 353926 into master
All threads resolved!
1 file
+ 2
7
Compare changes
  • Side-by-side
  • Inline
@@ -40,12 +40,6 @@ def wiki
@@ -40,12 +40,6 @@ def wiki
it { expect(wiki_page).to have_attributes(front_matter: {}, content: content) }
it { expect(wiki_page).to have_attributes(front_matter: {}, content: content) }
end
end
shared_examples 'a page with front-matter' do
let(:front_matter) { { title: 'Foo', slugs: %w[slug_a slug_b] } }
it { expect(wiki_page.front_matter).to eq(front_matter) }
end
context 'the wiki page has front matter' do
context 'the wiki page has front matter' do
let(:content) do
let(:content) do
<<~MD
<<~MD
@@ -60,8 +54,9 @@ def wiki
@@ -60,8 +54,9 @@ def wiki
MD
MD
end
end
it_behaves_like 'a page with front-matter'
let(:front_matter) { { title: 'Foo', slugs: %w[slug_a slug_b] } }
 
it { expect(wiki_page.front_matter).to eq(front_matter) }
it 'strips the front matter from the content' do
it 'strips the front matter from the content' do
expect(wiki_page.content.strip).to eq('My actual content')
expect(wiki_page.content.strip).to eq('My actual content')
end
end
Loading