Skip to content

Commit

Permalink
WIP WIP WIP WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
octopusinvitro committed Sep 19, 2016
1 parent 69f728f commit 28a3f23
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion t/web/basic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
require_relative '../../app'

describe 'Viewer' do
subject { Nokogiri::HTML(last_response.body) }
subject { Nokogiri::HTML(last_response.body) { |config| config.strict } }

it "has no HTML errors" do
get '/'
# binding.pry
subject.errors.each do |e|
puts e.message + " in line " + e.line.to_s
end
subject.errors.must_be_empty
end

describe 'when viewing the home page' do
before { get '/' }
Expand Down

0 comments on commit 28a3f23

Please sign in to comment.