Permalink
Browse files

Sample app with 'andand'

  • Loading branch information...
0 parents commit cde937be885b9a2da896db48de2fbbb5b03f7654 @ConradIrwin committed May 25, 2012
Showing with 30 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +10 −0 Rakefile
  3. +6 −0 app/app_delegate.rb
  4. +9 −0 spec/main_spec.rb
@@ -0,0 +1,5 @@
+.repl_history
+build
+resources/*.nib
+resources/*.momd
+resources/*.storyboardc
@@ -0,0 +1,10 @@
+$:.unshift("/Library/RubyMotion/lib")
+require 'motion/project'
+require 'motion-rubygems'
+
+Motion::Project::App.setup do |app|
+ # Use `rake config' to see complete project settings.
+ app.name = 'rubygems'
+
+ app.gems = %w(andand)
+end
@@ -0,0 +1,6 @@
+class AppDelegate
+ def application(application, didFinishLaunchingWithOptions:launchOptions)
+ $stderr.puts(5.andand + 1)
+ true
+ end
+end
@@ -0,0 +1,9 @@
+describe "Application 'rubygems'" do
+ before do
+ @app = UIApplication.sharedApplication
+ end
+
+ it "has one window" do
+ @app.windows.size.should == 1
+ end
+end

0 comments on commit cde937b

Please sign in to comment.