Sha256: 8aa8d58323a303135f44d1abcc99845cff9e5d145b252b7aaf2194afa1948019
Contents?: true
Size: 670 Bytes
Versions: 5
Compression:
Stored size: 670 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
5 entries across 5 versions & 1 rubygems