Sha256: a26f5ed9707942d148eee717a4f383634601a99a764bf605f1ebf6299250d203
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 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 @colspan_dummy.background_color.should == @colspan_master.background_color end it "rowspan dummy delegates background_color to the master cell" do @rowspan_dummy.background_color.should == @rowspan_master.background_color end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prawn-table-0.2.2 | spec/table/span_dummy_spec.rb |