Sha256: 1832522dd8921a0317d547da1313193b197aeb2a95bcd92fa04959a75d54a372
Contents?: true
Size: 920 Bytes
Versions: 3
Compression:
Stored size: 920 Bytes
Contents
require File.dirname(__FILE__) + '/fields_helper' describe PDFRavager::Fields::Checkbox do let(:checked) { PDFRavager::Fields::Checkbox.new('checkbox1', true, :true_value => 'foo', :false_value => 'bar') } let(:unchecked) { PDFRavager::Fields::Checkbox.new('checkbox2', false, :true_value => 'foo', :false_value => 'bar') } context 'checked' do context 'AcroForm value' do it 'sets value properly' do expect(checked.xfa_value).to eq('foo') end end context 'XFA value' do it 'sets value properly' do expect(checked.xfa_value).to eq('foo') end end end context 'unchecked' do context 'AcroForm value' do it 'sets value properly' do expect(unchecked.xfa_value).to eq('bar') end end context 'XFA value' do it 'sets value properly' do expect(unchecked.xfa_value).to eq('bar') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pdf_ravager-0.2.2 | spec/unit/fields/checkbox_spec.rb |
pdf_ravager-0.2.1 | spec/unit/fields/checkbox_spec.rb |
pdf_ravager-0.2.0 | spec/unit/fields/checkbox_spec.rb |