Sha256: 6e5a7d0fece66ef16a669b77faca453c4a06fcaaf3f0ab065a288253970f988b
Contents?: true
Size: 934 Bytes
Versions: 3
Compression:
Stored size: 934 Bytes
Contents
# encoding: utf-8 require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper") require 'set' describe "Prawn::Table::Cell::SpanDummy" do before(:each) do @pdf = Prawn::Document.new @table = @pdf.table([ [{:content => "A1-2", :colspan => 2}, {:content => "A-B3", :rowspan => 2}], [{:content => "B1-2", :colspan => 2}] ], :row_colors => [nil, 'EFEFEF']) @colspan_master = @table.cells[0,0] @colspan_dummy = @colspan_master.dummy_cells.first @rowspan_master = @table.cells[0,2] @rowspan_dummy = @table.cells[1,2] end it "colspan dummy delegates background_color to the master cell" do expect(@colspan_dummy.background_color).to eq @colspan_master.background_color end it "rowspan dummy delegates background_color to the master cell" do expect(@rowspan_dummy.background_color).to eq @rowspan_master.background_color end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prawn-table-continued-1.0.0.rc3 | spec/table/span_dummy_spec.rb |
prawn-table-continued-1.0.0.rc2 | spec/table/span_dummy_spec.rb |
prawn-table-continued-1.0.0.rc1 | spec/table/span_dummy_spec.rb |