spec/html/proofer_spec.rb in html-proofer-2.4.2 vs spec/html/proofer_spec.rb in html-proofer-2.5.0

- old
+ new

@@ -34,11 +34,11 @@ expect(proofer.options[:parallel]).to eq(nil) end describe 'sorting' do it 'understands sorting by path' do - output = send_proofer_output("#{FIXTURES_DIR}/sorting/path") + output = send_proofer_output("#{FIXTURES_DIR}/sorting/path", :verbosity => :info) expect(output.strip).to eq(''' - spec/html/proofer/fixtures/sorting/path/multiple_issues.html * image gpl.png does not have an alt attribute (line 7) * internal image gpl.png does not exist (line 7) @@ -47,11 +47,11 @@ * image has a terrible filename (./Screen Shot 2012-08-09 at 7.51.18 AM.png) (line 1) '''.strip) end it 'understands sorting by issue' do - output = send_proofer_output("#{FIXTURES_DIR}/sorting/issue", :error_sort => :desc) + output = send_proofer_output("#{FIXTURES_DIR}/sorting/issue", :verbosity => :info, :error_sort => :desc) expect(output.strip).to eq(''' - image ./gpl.png does not have an alt attribute * spec/html/proofer/fixtures/sorting/issue/broken_image_one.html (line 1) * spec/html/proofer/fixtures/sorting/issue/broken_image_two.html (line 1) - internal image ./gpl.png does not exist @@ -62,10 +62,10 @@ '''.strip) end it 'understands sorting by status' do - output = send_proofer_output("#{FIXTURES_DIR}/sorting/status", :typhoeus => { :followlocation => false }, :error_sort => :status) + output = send_proofer_output("#{FIXTURES_DIR}/sorting/status", :verbosity => :info, :typhoeus => { :followlocation => false }, :error_sort => :status) expect(output.gsub(/\s*$/, '')).to eq(''' - -1 * spec/html/proofer/fixtures/sorting/status/broken_link.html: internally linking to nowhere.fooof, which does not exist (line 3) - 301 * spec/html/proofer/fixtures/sorting/status/a_404.html: External link http://upload.wikimedia.org/wikipedia/en/thumb/not_here.png failed: 301