Sha256: 8a708d9f135fab54290927d6c72cfaee2658df039d7e67addf1ba99251374cdf

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 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 = 300
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

1 entries across 1 versions & 1 rubygems

Version Path
simctl-1.6.10 spec/spec_helper.rb