Sha256: eac7da59fd54e24670003ca1b6310d2713c94092420f1afc28f5f857c94e7aff

Contents?: true

Size: 710 Bytes

Versions: 41

Compression:

Stored size: 710 Bytes

Contents

require "spec_helper"

describe "Content Transformation" do
  let(:outline) { Brief.testcase.document_at("index.md") }
  let(:wireframe) { Brief.testcase.document_at("wireframe.html.md") }

  it "transforms the link tags based on the DSL" do
    html = outline.to_html
    expect(html).to include("Blueprint Persona Example")
    expect(html).to include("brief://")
  end

  it "automatically inlines SVG content for us" do
    html = wireframe.to_html
    expect(html).to include("svg-wrapper")
    expect(html).to include("svg version")
  end

  describe "HREF Generation" do
    it "does nothing by default" do
      expect(Brief.testcase.get_href_for("brief://me")).to eq("brief://me")
    end
  end
end


Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
brief-1.11.9 spec/lib/brief/content_transformation_spec.rb