Sha256: f01356fc9e93459fa3f79b969c3ef444752eefad273b74040a9e68870b3cc6bd
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
require "spec_helper" describe "Brief HTML Rendering" do let(:sample) do path = Brief.example_path.join("docs","epic.html.md") Brief::Document.new(path) end it "wraps the document with some identifying details" do expect(sample.to_html).to include("docs/epic.html.md") end it "wraps the higher level headings under section elements" do expect(sample.css("section").length).to eq(2) end it "wraps the lower level headings under article elements" do expect(sample.css("article").length).to eq(3) end it "nests the articles under the parent section" do expect(sample.css("section article").length).to eq(3) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brief-1.3.2 | spec/lib/brief/rendering_spec.rb |
brief-1.3.1 | spec/lib/brief/rendering_spec.rb |
brief-1.3.0 | spec/lib/brief/rendering_spec.rb |
brief-1.2.0 | spec/lib/brief/rendering_spec.rb |