Sha256: 9b8806772e74ced36647c620c246dc89b543787685942ab85119adb355c1caf9

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

require 'spec_helper'

describe Symbiont::WebObjects::TableCell do
  describe "implementation" do
    it "should register with a table definition tag" do
      ::Symbiont::WebObjects.get_class_for(:td).should == ::Symbiont::WebObjects::TableCell
    end

    it "should register with a table header tag" do
      ::Symbiont::WebObjects.get_class_for(:th).should == ::Symbiont::WebObjects::TableCell
    end

    it "should always be enabled" do
      table_cell_object = double('table_cell_object')
      table_cell = Symbiont::WebObjects::TableCell.new(table_cell_object)
      table_cell.enabled?.should be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 spec/symbiont/web_objects/table_cell_spec.rb
symbiont-0.2.0 spec/symbiont/web_objects/table_cell_spec.rb