spec/osx/frameable_spec.rb in sugarcube-3.3.6 vs spec/osx/frameable_spec.rb in sugarcube-3.3.7
- old
+ new
@@ -152,25 +152,25 @@
end
describe NSScreen do
it 'should return x' do
- view = NSScreen.alloc.initWithFrame([[100, 200], [300, 400]])
+ view = NSScreen.mainScreen
view.x.should == view.frame.origin.x
end
it 'should return y' do
- view = NSScreen.alloc.initWithFrame([[100, 200], [300, 400]])
+ view = NSScreen.mainScreen
view.y.should == view.frame.origin.y
end
it 'should return width' do
- view = NSScreen.alloc.initWithFrame([[100, 200], [300, 400]])
+ view = NSScreen.mainScreen
view.width.should == view.frame.size.width
end
it 'should return height' do
- view = NSScreen.alloc.initWithFrame([[100, 200], [300, 400]])
+ view = NSScreen.mainScreen
view.height.should == view.frame.size.height
end
end