Calabash-RubyMotion Sample from Inspect2013 conference
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RubyMotionSamples @ ea126d0
features
.gitignore
.gitmodules
Notes.org
README.md

README.md

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.