Sha256: 4563afd89b2c5a21fd447d5f94e49086ff42d223857f28f7d1623386f80136b1

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

describe UnderOs::Page::Layout do
  before do
    @page   = TestPage.new
    @layout = UnderOs::Page::Layout.new(@page)
  end

  it "should pickup the elements from the layout.html file" do
    @page.view.should.not == nil
    children = @page.view.children
    children.size.should == 1
    children[0].class.should == UnderOs::UI::Button
    children[0].text.should  == 'Say Hello'
  end

  it "should pickup the page title from the test layout" do
    @page.title.should == 'Hello World'
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
under-os-ui-1.4.0 spec/under_os/page/layout_spec.rb
under-os-1.3.0 spec/lib/under_os/page/layout_spec.rb
under-os-1.2.1 spec/lib/under_os/page/layout_spec.rb
under-os-1.2.0 spec/lib/under_os/page/layout_spec.rb
under-os-1.1.0 spec/lib/under_os/page/layout_spec.rb
under-os-1.0.0 spec/lib/under_os/page/layout_spec.rb