Skip to content

krukow/motion-calabash-inspect2013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

motion-calabash-inspect2013

Calabash-RubyMotion Sample from Inspect2013 conference

To try

git submodule update --init
cp -R features RubyMotionSamples/Beers
cd RubyMotionSamples/Beers/
gem install motion-calabash

Edit Rakefile and add the line require 'motion-calabash' below require 'motion/project':

$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-calabash'
#...

Build

rake build

Run test

rake calabash:run

(make sure the iOS Simulator isn't hidden behind some other window).

To run on a USB-connected device, make sure the device is enabled for development, and you have an appropriate provisioning profile. For example, I have

Motion::Project::App.setup do |app|
  app.name = 'Beers'
  app.frameworks += ['CoreLocation', 'MapKit', 'AddressBook']
  app.codesign_certificate = "iPhone Developer: Karl Krukow (6GF49ATP5N)"
  app.deployment_target = "5.0"
  app.provisioning_profile="/Users/krukow/ios_profiles/6EFC102C-1911-48B2-B0AF-5DB3923210E3.mobileprovision"
end

Then run

rake calabash:run device

Be sure to check out the documentation for motion-calabash.

About

Calabash-RubyMotion Sample from Inspect2013 conference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages