Sha256: 8f0e9d819af5e0aafe738ce9890611c2e62eaedbde26fb55e91846b8da1c28dd

Contents?: true

Size: 837 Bytes

Versions: 5

Compression:

Stored size: 837 Bytes

Contents

require 'cfpropertylist'
require 'coveralls'
require 'simplecov'
SimpleCov.start do
  add_filter 'spec'
end
Coveralls.wear!

$LOAD_PATH.push File.expand_path('../../lib', __FILE__)
require File.dirname(__FILE__) + '/../lib/simctl.rb'

SimCtl.default_timeout = if ENV['TRAVIS']
                           300
                         else
                           60
                         end

SimCtl.device_set_path = Dir.mktmpdir 'foo bar' if ENV['CUSTOM_DEVICE_SET_PATH']

RSpec.configure do |config|
  config.tty = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.mock_with :rspec do |c|
    c.syntax = :expect
  end

  def with_rescue(&block)
    block.class
  rescue
  end

  def plist(path)
    plist = CFPropertyList::List.new(file: path)
    CFPropertyList.native_types(plist.value)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simctl-1.6.8 spec/spec_helper.rb
simctl-1.6.7 spec/spec_helper.rb
simctl-1.6.6 spec/spec_helper.rb
simctl-1.6.5 spec/spec_helper.rb
simctl-1.6.4 spec/spec_helper.rb