Sha256: d1fa61d97c119c08bbd0fff1ff41229e9a27ee08a333a9a0ac6857b7727870e9

Contents?: true

Size: 833 Bytes

Versions: 5

Compression:

Stored size: 833 Bytes

Contents

module Fixtures
  module HTML
    extend self

    TEMPLATE = <<-HTML
<html>
  <head>
%s
  </head>
  <body>
    <p>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
      veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
      commodo consequat.
    </p>
  </body>
</html>
    HTML

    LINK = <<-LINK
<link rel='stylesheet' type='text/css' href='%s' />
    LINK

    def with_css_links(*files)
      links = []
      files.each do |file|
        links << LINK % "http://example.com/#{file}"
      end

      TEMPLATE % links.join
    end

    def with_no_css_link
      with_css_links
    end

    def with_style_block
      TEMPLATE % '<style type="text/css">p { color: red; }</style>'
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
premailer-rails-1.4.0 spec/fixtures/html.rb
premailer-rails3-1.3.2 spec/fixtures/html.rb
premailer-rails-1.3.2 spec/fixtures/html.rb
premailer-rails3-1.3.1 spec/fixtures/html.rb
premailer-rails3-1.3.0 spec/fixtures/html.rb