Sha256: 89d6abab7f90b5142070aec874036e7ca50b093271152a6730659edfef3ec5af
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
premailer-rails-1.5.1 | spec/fixtures/html.rb |
premailer-rails-1.5.0 | spec/fixtures/html.rb |