Permalink
Browse files

Start RubyMotion equivalent of chapter 1

  • Loading branch information...
1 parent d7dbed1 commit a8d08a3ffe4c57979bb4ed09656943fc7179edaa @thbar committed May 8, 2012
Showing with 23 additions and 0 deletions.
  1. +2 −0 01/RubyQuiz/.gitignore
  2. +7 −0 01/RubyQuiz/Rakefile
  3. +5 −0 01/RubyQuiz/app/app_delegate.rb
  4. +9 −0 01/RubyQuiz/spec/main_spec.rb
@@ -0,0 +1,2 @@
+.repl_history
+build
@@ -0,0 +1,7 @@
+$:.unshift("/Library/RubyMotion/lib")
+require 'motion/project'
+
+Motion::Project::App.setup do |app|
+ # Use `rake config' to see complete project settings.
+ app.name = 'RubyQuiz'
+end
@@ -0,0 +1,5 @@
+class AppDelegate
+ def application(application, didFinishLaunchingWithOptions:launchOptions)
+ true
+ end
+end
@@ -0,0 +1,9 @@
+describe "Application 'RubyQuiz'" do
+ before do
+ @app = UIApplication.sharedApplication
+ end
+
+ it "has one window" do
+ @app.windows.size.should == 1
+ end
+end

0 comments on commit a8d08a3

Please sign in to comment.