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