Sha256: cafd6c592ed103806670974588f3c48cd1005cb40e69cef21387022bf14fb51a
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' module Prawn class Document def initialize @calls = [] end def explicit_call @calls << :explicit_call end def implicit_call @calls << :implicit_call end def render @calls.inspect end end end describe 'PrawnHandler' do it 'compatibility with action view' do view = ActionView::Base.new result = view.render file: File.join('spec', 'support', 'test.pdf.prawn') expect(result).to eq '[:explicit_call, :implicit_call]' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-print-invoice-2.2.0 | spec/lib/prawn_handler_spec.rb |
spree-print-invoice-2.1.0 | spec/lib/prawn_handler_spec.rb |