Sha256: 28144636e424837bed337e093e27c904e1ef43e9058c4175952aee5b8e459622
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
require "spec_helper" describe "Document Structure Information" do let(:sample) do path = Brief.example_path.join("docs","epic.html.md") Brief::Document.new(path) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brief-1.3.2 | spec/lib/brief/structure_spec.rb |
brief-1.3.1 | spec/lib/brief/structure_spec.rb |
brief-1.3.0 | spec/lib/brief/structure_spec.rb |
brief-1.2.0 | spec/lib/brief/structure_spec.rb |