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.9.4 spec/lib/brief/structure_spec.rb
brief-1.9.3 spec/lib/brief/structure_spec.rb
brief-1.9.2 spec/lib/brief/structure_spec.rb
brief-1.9.1 spec/lib/brief/structure_spec.rb
brief-1.9.0 spec/lib/brief/structure_spec.rb
brief-1.8.12 spec/lib/brief/structure_spec.rb
brief-1.8.11 spec/lib/brief/structure_spec.rb
brief-1.8.10 spec/lib/brief/structure_spec.rb
brief-1.8.9 spec/lib/brief/structure_spec.rb
brief-1.8.8 spec/lib/brief/structure_spec.rb
brief-1.8.6 spec/lib/brief/structure_spec.rb
brief-1.8.5 spec/lib/brief/structure_spec.rb
brief-1.8.4 spec/lib/brief/structure_spec.rb
brief-1.8.3 spec/lib/brief/structure_spec.rb
brief-1.8.2 spec/lib/brief/structure_spec.rb
brief-1.8.1 spec/lib/brief/structure_spec.rb
brief-1.8.0 spec/lib/brief/structure_spec.rb
brief-1.7.3 spec/lib/brief/structure_spec.rb
brief-1.7.2 spec/lib/brief/structure_spec.rb
brief-1.7.1 spec/lib/brief/structure_spec.rb