spec/simctl/upgrade_spec.rb in simctl-1.6.8 vs spec/simctl/upgrade_spec.rb in simctl-1.6.10

- old
+ new

@@ -1,12 +1,12 @@ require 'spec_helper' RSpec.describe SimCtl do describe '#upgrade' do it 'upgrades a device to a newer runtime' do - old_runtime = SimCtl.runtime(name: 'iOS 12.1') - new_runtime = SimCtl.runtime(name: 'iOS 12.4') - device = SimCtl.reset_device 'iPhone 7', SimCtl.devicetype(name: 'iPhone 7'), old_runtime + old_runtime = SimCtl.runtime(name: 'iOS 15.2') + new_runtime = SimCtl.runtime(name: 'iOS 15.2') + device = SimCtl.reset_device 'iPhone 8', SimCtl.devicetype(name: 'iPhone 8'), old_runtime expect(device.runtime.version).to be == old_runtime.version SimCtl.upgrade device, new_runtime device.wait { |d| d.runtime.version == new_runtime.version } device.delete end