Sha256: edac5296ac6bfc1edfdd31137a5dc877be12993df0674840e030ac251b8ce95d

Contents?: true

Size: 660 Bytes

Versions: 10

Compression:

Stored size: 660 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' href='%s' />
    LINK

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

      TEMPLATE % links.join
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
premailer-rails-1.9.0 spec/support/fixtures/html.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/premailer-rails-1.8.2/spec/support/fixtures/html.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/premailer-rails-1.8.2/spec/support/fixtures/html.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/premailer-rails-1.8.2/spec/support/fixtures/html.rb
premailer-rails-1.8.2 spec/support/fixtures/html.rb
premailer-rails-1.8.1 spec/support/fixtures/html.rb
premailer-rails-1.8.0 spec/support/fixtures/html.rb
premailer-rails-1.7.0 spec/support/fixtures/html.rb
premailer-rails-1.6.1 spec/support/fixtures/html.rb
premailer-rails-1.6.0 spec/support/fixtures/html.rb