Sha256: dd6c92f22dd57710016002f8378de350074f16240387b7ce73b98648e634c8de
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 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_match %r(^file:\/\/\/.*wicked_header_pdf.*\.html), options[:header][:html][:url] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wicked_pdf-1.0.6 | test/functional/pdf_helper_test.rb |
wicked_pdf-1.0.5 | test/functional/pdf_helper_test.rb |