Sha256: 59f21dd3dc67d9dcb7d959b47e3ac73d904199648b9042841702e99ff13ed9da
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
describe Joybox::UI::Label do behaves_like Joybox::UI::Label describe "Initialization" do it "should initialize with text" do color = "#FFFFFF".to_color label = Label.new text: 'Label', position: [100, 100], color: color label.should.not == nil label.text.should == 'Label' label.position.should == CGPointMake(100, 100) label.color.r.should == color.red label.color.g.should == color.green label.color.b.should == color.blue end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox-ios/ui/label_spec.rb |
joybox-1.1.0 | spec/motion/joybox-ios/ui/label_spec.rb |