Sha256: 1ec8928af2342ac764ef4d5f6b6e83d7d108e4ed2f60e5691e3efd65049eb92e
Contents?: true
Size: 811 Bytes
Versions: 6
Compression:
Stored size: 811 Bytes
Contents
describe UnderOs::UI::Sidebar do before do @sidebar = UnderOs::UI::Sidebar.new end describe '#initialize' do it "should build sidebars" do @sidebar.class.should == UnderOs::UI::Sidebar end it "should wrap up a normal UIView" do @sidebar._.class.should == UIView end it "should have the 'SIDEBAR' tag" do @sidebar.tagName.should == "SIDEBAR" end it "should accept the 'location' option" do sidebar = UnderOs::UI::Sidebar.new(location: :left) sidebar.location.should == :left end end describe '#location' do it "should return :bottom by default" do @sidebar.location.should == :bottom end it "should accept other values" do @sidebar.location = 'top' @sidebar.location.should == :top end end end
Version data entries
6 entries across 6 versions & 2 rubygems