Sha256: b93831ac54b765b2c0173f9d97d5e90e48c10f585cd2c1c9bfe50a5e76ae1f75

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'spec_helper'

RSpec.describe SimCtl do
  describe '#warmup' do
    it 'warms up and returns a device for given strings' do
      SimCtl.reset_device 'iPhone 8', SimCtl.devicetype(name: 'iPhone 8'), SimCtl.runtime(name: 'iOS 15.2')
      expect(SimCtl.warmup('iPhone 8', 'iOS 15.2')).to be_kind_of SimCtl::Device
    end

    it 'warms up and returns a device for given objects' do
      devicetype = SimCtl.devicetype(name: 'iPhone 8')
      runtime = SimCtl::Runtime.latest(:ios)
      SimCtl.reset_device 'iPhone 8', devicetype, runtime
      expect(SimCtl.warmup(devicetype, runtime)).to be_kind_of SimCtl::Device
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simctl-1.6.10 spec/simctl/warmup_spec.rb