Sha256: 16e246970644d1ccfb3813ed69050685a2aa5d638744d9f48f8c4daa9cc942b6

Contents?: true

Size: 506 Bytes

Versions: 16

Compression:

Stored size: 506 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 => "Row", :colspan => 2}]])
    @master_cell = @table.cells[0,0]
    @span_dummy  = @master_cell.dummy_cells.first
  end

  it "delegates background_color to the master cell" do
    @span_dummy.background_color.should == @master_cell.background_color
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
prawn-table-0.2.1 spec/table/span_dummy_spec.rb
prawn-table-0.2.0 spec/table/span_dummy_spec.rb
prawn-table-0.1.2 spec/table/span_dummy_spec.rb
prawn-table-0.1.1 spec/table/span_dummy_spec.rb
prawn-table-0.1.0 spec/table/span_dummy_spec.rb
prawn-table-0.0.4 spec/table/span_dummy_spec.rb
prawn-table-0.0.3 spec/table/span_dummy_spec.rb
prawn-table-0.0.2 spec/table/span_dummy_spec.rb
prawn-table-0.0.1 spec/table/span_dummy_spec.rb
prawn-1.1.0 spec/table/span_dummy_spec.rb
prawn-1.0.0 spec/table/span_dummy_spec.rb
prawn-0.15.0 spec/table/span_dummy_spec.rb
prawn-0.14.0 spec/table/span_dummy_spec.rb
prawn-0.13.2 spec/table/span_dummy_spec.rb
prawn-0.13.1 spec/table/span_dummy_spec.rb
prawn-0.13.0 spec/table/span_dummy_spec.rb