Sha256: 65057eadeb60343f0edd068661fbcc67ec1de3ab31424b231ce468e9a04d6009

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brief-0.0.5 spec/lib/brief/parser_spec.rb
brief-0.0.4 spec/lib/brief/parser_spec.rb
brief-0.0.3 spec/lib/brief/parser_spec.rb
brief-0.0.2 spec/lib/brief/parser_spec.rb