Sha256: 1b10f0556d9ea7793cf2fe47f29ba6c5bdffd695c83b73be72fe65c9aedc22e2
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
describe BubbleWrap::Constants do describe ".get" do BubbleWrap::Constants.register UIReturnKeyDone, UIReturnKeyNext it "should return integer passed" do BW::Constants.get("anything", 5).should == 5 end it "should return integer for decimal passed" do BW::Constants.get("anything", 5.0).should == 5 end it "should return the correct integer for a string" do BW::Constants.get("UIReturnKey", "done").should == UIReturnKeyDone end it "should return the correct integer for a symbol" do BW::Constants.get("UIReturnKey", :done).should == UIReturnKeyDone end it "should bitmask array values" do BW::Constants.get("UIReturnKey", :done, :next).should == (UIReturnKeyDone | UIReturnKeyNext) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bubble-wrap-1.2.0 | spec/motion/util/constants_spec.rb |
bubble-wrap-1.2.0.pre | spec/motion/util/constants_spec.rb |