Skip to content

Commit

Permalink
Start RubyMotion equivalent of chapter 1
Browse files Browse the repository at this point in the history
  • Loading branch information
thbar committed May 8, 2012
1 parent d7dbed1 commit a8d08a3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 01/RubyQuiz/.gitignore
@@ -0,0 +1,2 @@
.repl_history
build
7 changes: 7 additions & 0 deletions 01/RubyQuiz/Rakefile
@@ -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
5 changes: 5 additions & 0 deletions 01/RubyQuiz/app/app_delegate.rb
@@ -0,0 +1,5 @@
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
true
end
end
9 changes: 9 additions & 0 deletions 01/RubyQuiz/spec/main_spec.rb
@@ -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.