diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index 559d9fb..7f74c5c 100644 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -24,6 +24,16 @@ describe Jekyll::SeoTag do expect(output).to match(/Jekyll SEO tag v#{version}/i) end + it 'outputs valid HTML' do + site.process + options = { + check_html: true, + checks_to_ignore: %w(ScriptCheck LinkCheck ImageCheck) + } + status = HTML::Proofer.new(dest_dir, options).run + expect(status).to eql(true) + end + context 'with page.title' do let(:page) { make_page('title' => 'foo') } @@ -433,14 +443,4 @@ EOS expect(output).not_to match(//) end end - - it 'outputs valid HTML' do - site.process - options = { - check_html: true, - checks_to_ignore: %w(ScriptCheck LinkCheck ImageCheck) - } - status = HTML::Proofer.new(dest_dir, options).run - expect(status).to eql(true) - end end