Sha256: 37b16a965e19997f3288ac3c27b389b029a73f4bd3b0aa01a26487b021372b5a
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'test_helper' module ActionController class Base def render_to_string opts={} opts.to_s end end end class PdfHelperTest < ActionController::TestCase def setup @ac = ActionController::Base.new end def teardown @ac=nil end if Rails::VERSION::MAJOR == 2 test "should prerender header and footer :template options" do options = @ac.send( :prerender_header_and_footer, :header => {:html => { :template => 'hf.html.erb'}}); assert !options[:header][:html].has_key?(:template) assert_match /^file:\/\/.*wicked_header_pdf.*\.html/, options[:header][:html][:url] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wicked_pdf-0.8.0 | test/pdf_helper_test.rb |