Skip to content

Commit

Permalink
project init
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Garrison committed Jul 20, 2012
1 parent 8038882 commit 605de41
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ch_14/02_addingcalevents/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.repl_history
build
resources/*.nib
resources/*.momd
resources/*.storyboardc
8 changes: 8 additions & 0 deletions ch_14/02_addingcalevents/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'

Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = '02_addingcalevents'
end
5 changes: 5 additions & 0 deletions ch_14/02_addingcalevents/app/app_delegate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
true
end
end
9 changes: 9 additions & 0 deletions ch_14/02_addingcalevents/spec/main_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe "Application '02_addingcalevents'" do
before do
@app = UIApplication.sharedApplication
end

it "has one window" do
@app.windows.size.should == 1
end
end

0 comments on commit 605de41

Please sign in to comment.