Sha256: 531328aeeb58ec959a335388acaa611fc047f99061e54ae656b2c22933e44e39

Contents?: true

Size: 601 Bytes

Versions: 72

Compression:

Stored size: 601 Bytes

Contents

require "spec_helper"

describe "Brief HTML Rendering" do
  let(:sample) do
    Brief.example_document
  end

  it "wraps the document with some identifying details" do
    expect(sample.to_html).to include("epics/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

72 entries across 72 versions & 1 rubygems

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