Sha256: de175c92d7a69a24528a8a3e3e157de677449701e562304ebf2a89b79b0eea2e
Contents?: true
Size: 845 Bytes
Versions: 6
Compression:
Stored size: 845 Bytes
Contents
describe UnderOs::UI::Locker do before do @locker = UnderOs::UI::Locker.new end describe '#constructor' do it "builds locker instances" do @locker.class.should == UnderOs::UI::Locker end it "wraps plain UIView objects" do @locker._.class.should == UIView end it "sets the LOCKER tag" do @locker.tagName.should == "LOCKER" end it "builds the dialog box inside" do @locker.first('view.locker-dialog').should.not == nil @locker.first('view.locker-dialog spinner').should.not == nil @locker.first('view.locker-dialog label').should.not == nil end it "accepts the label text" do locker = UnderOs::UI::Locker.new(text: "Syncing...") locker.first('label').text.should == "Syncing..." locker.hasClass('with-label').should == true end end end
Version data entries
6 entries across 6 versions & 2 rubygems