require 'nokogiri'

describe "html output" do 
  before :all do
    html_file = File.open("index.html")
    @page = Nokogiri::HTML(html_file)
    html_file.close
  end

  it "contains a head tag" do
    # at_css will only return a single result
    expect(@page.css('head').count).to eq(1)
  end

  it "contains a body tag" do
    expect(@page.css('body').count).to eq(1)
  end
end

Implement initial tests for index.html
Implement initial tests for index.html

This test will check if the head and body tags are in the html.
