Sha256: 44bf49c6d3b24a2f1c399c54963d5771ffadb79c85750deb648444e97ae998d3
Contents?: true
Size: 726 Bytes
Versions: 3
Compression:
Stored size: 726 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simctl-1.6.2 | spec/simctl/readme_spec.rb |
simctl-1.6.1 | spec/simctl/readme_spec.rb |
simctl-1.6.0 | spec/simctl/readme_spec.rb |