<commit_before>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 5')
        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 10.1') }.to raise_error SimCtl::DeviceNotFound
      end
    end
  end
end<commit_msg>Fix tests on Xcode 7<commit_after>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 5')
        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
{'fraction_non_alphanumeric': 0.09718309859154929, 'fraction_numerical': 0.011267605633802818, 'mean_word_length': 2.980392156862745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '90796', 'n_tokens_mistral': 512, 'n_tokens_neox': 473, 'n_words': 137}