Sha256: ff4666be5003437c12e4eb7e47198868e3bc742d0d4643a9b6315af89ffd8e22
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
require 'spec_helper' RSpec.describe SimCtl do it 'executes example code from readme' do # Select the iOS 9.3 runtime runtime = SimCtl.runtime(name: 'iOS 9.3') # Select the iPhone 5 device type devicetype = SimCtl.devicetype(name: 'iPhone 5') # Create a new device device = SimCtl.create_device 'Unit Tests @ iPhone 5 9.3', devicetype, runtime # Launch a new Simulator.app instance device.launch! # Wait for the device to be booted device.wait! {|d| d.state == :booted} # Kill the Simulator.app instance again device.shutdown! device.kill! # Wait until it did shutdown device.wait! {|d| d.state == :shutdown} # Delete the device device.delete! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simctl-1.5.8 | spec/simctl/readme_spec.rb |