Sha256: 41218728b2568acb65a6843190a11c2c8fb0059f7f7059f27f4c86737db48d96
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
require File.dirname(__FILE__) + '/unit_helper' require 'pdf_ravager/kernel' describe Kernel do let(:template) { pdf do |p| p.text 'text', 'foo' p.rich_text 'rich_text', '<b>foo</b>' p.check 'checkbox1' p.uncheck 'checkbox2' p.fill 'radio_group', 'button' end } let(:longform_template) { PDFRavager::Template.new do |t| t.text 'text', 'foo' t.rich_text 'rich_text', '<b>foo</b>' t.check 'checkbox1' t.uncheck 'checkbox2' t.fill 'radio_group', 'button' end } context 'equality' do context 'a shorthand and longform template with equal options' do it 'is equal' do expect(template).to eq(longform_template) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pdf_ravager-0.2.2 | spec/unit/kernel_spec.rb |
pdf_ravager-0.2.1 | spec/unit/kernel_spec.rb |
pdf_ravager-0.2.0 | spec/unit/kernel_spec.rb |