spec/druid/elements/table_row_spec.rb in druid-ts-1.1.5 vs spec/druid/elements/table_row_spec.rb in druid-ts-1.1.6
- old
+ new
@@ -13,9 +13,10 @@
describe "interface" do
let(:element) { double 'element' }
let(:table_row) { Druid::Elements::TableRow.new(element) }
it "should return a table cell when indexed" do
+ allow(table_row).to receive(:columns).and_return(2)
expect(element).to receive(:[]).with(1)
expect(table_row[1]).to be_instance_of Druid::Elements::TableCell
end
it "should return the number of columns" do