Sha256: 699392f592aa9859e75c3fda6f0a3fd2acd3fd635e8680b17ea05574c1ce983b

Contents?: true

Size: 680 Bytes

Versions: 3

Compression:

Stored size: 680 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 9.3')).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 9.3') }.to raise_error SimCtl::DeviceNotFound
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simctl-1.6.5 spec/simctl/warmup_spec.rb
simctl-1.6.4 spec/simctl/warmup_spec.rb
simctl-1.6.3 spec/simctl/warmup_spec.rb