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.17.14 spec/lib/brief/content_transformation_spec.rb
brief-1.17.13 spec/lib/brief/content_transformation_spec.rb
brief-1.17.12 spec/lib/brief/content_transformation_spec.rb
brief-1.17.11 spec/lib/brief/content_transformation_spec.rb
brief-1.17.10 spec/lib/brief/content_transformation_spec.rb
brief-1.17.9 spec/lib/brief/content_transformation_spec.rb
brief-1.17.8 spec/lib/brief/content_transformation_spec.rb
brief-1.17.7 spec/lib/brief/content_transformation_spec.rb
brief-1.17.5 spec/lib/brief/content_transformation_spec.rb
brief-1.17.4 spec/lib/brief/content_transformation_spec.rb
brief-1.17.3 spec/lib/brief/content_transformation_spec.rb
brief-1.17.2 spec/lib/brief/content_transformation_spec.rb
brief-1.17.1 spec/lib/brief/content_transformation_spec.rb
brief-1.17.0 spec/lib/brief/content_transformation_spec.rb
brief-1.16.2 spec/lib/brief/content_transformation_spec.rb
brief-1.16.1 spec/lib/brief/content_transformation_spec.rb
brief-1.16.0 spec/lib/brief/content_transformation_spec.rb
brief-1.15.5 spec/lib/brief/content_transformation_spec.rb
brief-1.15.4 spec/lib/brief/content_transformation_spec.rb
brief-1.15.3 spec/lib/brief/content_transformation_spec.rb