mirror of
https://github.com/zhigang1992/redpotion.git
synced 2026-04-30 21:32:28 +08:00
Fixed app in screen, it now returns RubyMotionQuery::App as it should. Updated gems. Readme tweak.
This commit is contained in:
@@ -7,6 +7,10 @@ describe 'ScreenModule' do
|
||||
|
||||
class TestScreen < PM::Screen
|
||||
stylesheet TestScreenStylesheet
|
||||
|
||||
def grab_app
|
||||
app
|
||||
end
|
||||
end
|
||||
|
||||
tests TestScreen
|
||||
@@ -23,5 +27,9 @@ describe 'ScreenModule' do
|
||||
TestScreenTwo.new.view_did_load
|
||||
end
|
||||
end
|
||||
|
||||
it 'should return RubyMotionQuery::App when using app inside a screen' do
|
||||
TestScreen.new.grab_app.should == RubyMotionQuery::App
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user