Sha256: 3deae1ce35a4d6f88af2684e2656fc8b03f6d2c502317cc147075742a093f507

Contents?: true

Size: 711 Bytes

Versions: 89

Compression:

Stored size: 711 Bytes

Contents

require "spec_helper"

describe "Document Structure Information" do
  let(:sample) do
    Brief.example_document
  end

  let(:one) do
    path = Brief.spec_root.join("fixtures","structures", "one.html.md")
    Brief::Document.new(path)
  end

  let(:two) do
    path = Brief.spec_root.join("fixtures","structures", "two.html.md")
    Brief::Document.new(path)
  end

  let(:three) do
    path = Brief.spec_root.join("fixtures","structures", "three.html.md")
    Brief::Document.new(path)
  end

  context "Mapping markdown source to output html" do
    it "should put the line numbers on the headings" do
      el = sample.css("h1").first
      expect(el.attr('data-line-number')).to eq("8")
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/structure_spec.rb
brief-1.17.13 spec/lib/brief/structure_spec.rb
brief-1.17.12 spec/lib/brief/structure_spec.rb
brief-1.17.11 spec/lib/brief/structure_spec.rb
brief-1.17.10 spec/lib/brief/structure_spec.rb
brief-1.17.9 spec/lib/brief/structure_spec.rb
brief-1.17.8 spec/lib/brief/structure_spec.rb
brief-1.17.7 spec/lib/brief/structure_spec.rb
brief-1.17.5 spec/lib/brief/structure_spec.rb
brief-1.17.4 spec/lib/brief/structure_spec.rb
brief-1.17.3 spec/lib/brief/structure_spec.rb
brief-1.17.2 spec/lib/brief/structure_spec.rb
brief-1.17.1 spec/lib/brief/structure_spec.rb
brief-1.17.0 spec/lib/brief/structure_spec.rb
brief-1.16.2 spec/lib/brief/structure_spec.rb
brief-1.16.1 spec/lib/brief/structure_spec.rb
brief-1.16.0 spec/lib/brief/structure_spec.rb
brief-1.15.5 spec/lib/brief/structure_spec.rb
brief-1.15.4 spec/lib/brief/structure_spec.rb
brief-1.15.3 spec/lib/brief/structure_spec.rb