Fixed app in screen, it now returns RubyMotionQuery::App as it should. Updated gems. Readme tweak.

This commit is contained in:
Todd Werth
2015-04-29 09:54:54 -07:00
parent 83b4a8108f
commit 315ecccb76
6 changed files with 49 additions and 10 deletions

View File

@@ -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