Sha256: dcbfe1a5e28667892a8932540f581a22ce7df71e05c6db82e19a35ac5011a895
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
require 'test_helper' class TooRendermonkeyCssTest < ActiveSupport::TestCase include TooRendermonkeyCss def setup Rails.logger =Logger.new(STDOUT) end test "should return css style that is html safe" do css_file = ActionView::Base.new.stylesheet_tag_pdf("reports_pdf") assert lambda {css_file.html_safe?} end test "should return empty css if it cannot find the file" do css_file = ActionView::Base.new.stylesheet_tag_pdf("does_not_exist.pdf") assert_equal "<style type=\"text/css\"></style>", css_file.to_s assert lambda {css_file.html_safe?} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
too_rendermonkey-0.3.0 | test/rails_test/test/unit/too_rendermonkey_css_test.rb |