Sha256: 0af7051e3f4738b646e976f3d778730762a0b75a8f7869aac3c52b360ac30cbe
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
require 'spec_helper' RSpec.describe SimCtl do describe '#warmup' do if SimCtl.device_set_path.nil? it 'warms up and returns a device for given strings' do expect(SimCtl.warmup('iPhone 6', 'iOS 12.1')).to be_kind_of SimCtl::Device end it 'warms up and returns a device for given objects' do devicetype = SimCtl.devicetype(name: 'iPhone 6') runtime = SimCtl::Runtime.latest(:ios) expect(SimCtl.warmup(devicetype, runtime)).to be_kind_of SimCtl::Device end else it 'raises exception' do expect { SimCtl.warmup('iPhone 6', 'iOS 12.1') }.to raise_error SimCtl::DeviceNotFound end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simctl-1.6.7 | spec/simctl/warmup_spec.rb |
simctl-1.6.6 | spec/simctl/warmup_spec.rb |