Sha256: ca35419a5ed6508862ba99bd341defbea5e7904f85a8db04bac33d865f6e4618
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
require 'spec_helper' RSpec.describe SimCtl do it 'executes example code from readme' do # Select the iOS 12.1 runtime runtime = SimCtl.runtime(name: 'iOS 12.1') # Select the iPhone 6 device type devicetype = SimCtl.devicetype(name: 'iPhone 6') # Create a new device device = SimCtl.create_device 'Unit Tests @ iPhone 6 - 12.1', devicetype, runtime # Boot the device device.boot # 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.8 | spec/simctl/readme_spec.rb |
simctl-1.6.7 | spec/simctl/readme_spec.rb |
simctl-1.6.6 | spec/simctl/readme_spec.rb |