Sha256: 71617d0bf28c2ba5a211f6d0148e444dbe4810499b152cfae778f5da33a1a627

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

describe "UnderOs::UI::Div" do
  before do
    @div = UnderOs::UI::Div.new
  end

  describe "constructor" do
    it "builds an UnderOs::UI::Div instance" do
      @div.class.should == UnderOs::UI::Div
    end

    it "wraps a generic UIView element" do
      @div._.class.should == UIView
    end

    it "has the DIV tag assigned to the element" do
      @div.tagName.should == "DIV"
    end

    it "handles the usual options" do
      div = UnderOs::UI::Div.new(id: 'my-div')
      div.id.should == 'my-div'
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
under-os-ui-1.4.0 spec/under_os/ui/div_spec.rb
under-os-1.3.0 spec/lib/under_os/ui/div_spec.rb
under-os-1.2.1 spec/lib/under_os/ui/div_spec.rb
under-os-1.2.0 spec/lib/under_os/ui/div_spec.rb