Sha256: 6a0645ec0b1763250da45a7dd9e11192c64f8d5df5f1c62155310708cab357ee

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 6', SimCtl.devicetype(name: 'iPhone 6'), SimCtl.runtime(name: 'iOS 12.1')
      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 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.8 spec/simctl/warmup_spec.rb