Sha256: 9b7e4e174aa1990355c9ffc0962386f570dfc6cfcbed72c4777bf7172a12891a
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
describe Joybox::Core::Screen do before do @window = UIApplication.sharedApplication.windows[0] end it "should return the width of the screen" do Screen.width.should == @window.bounds.size.height end it "should return the half of the screen width" do Screen.half_width.should == @window.bounds.size.height / 2 end it "should return the height of the screen" do Screen.height.should == @window.bounds.size.width end it "should return the half of the screen height" do Screen.half_height.should == @window.bounds.size.width / 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox-ios/common/screen_spec.rb |
joybox-1.1.0 | spec/motion/joybox-ios/common/screen_spec.rb |