require "spec_helper"

describe Brief::Parser do
  let(:sample) do
    Brief::Document.new(Brief.fixtures.join("sample.md")).parser
  end

  it "should give me information about the headings" do
    expect(sample.headings_at_level(1)).to eq(["Heading One", "Heading Two"])
    expect(sample.headings_at_level(2)).to eq(["Subheading One", "Subheading Two", "Subheading Three"])
  end
end