Sha256: 82b1e8b8964721469a6abd1d2f75b5573b8d8af4677120a362803de0fc14971a

Contents?: true

Size: 941 Bytes

Versions: 4

Compression:

Stored size: 941 Bytes

Contents

require "simplecov"
require 'coveralls'
require 'fakefs/spec_helpers'

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
  add_filter "/spec/"
end

require "invoker"
require "invoker/power/power"
MM = Invoker::IPC::Message

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.mock_with :mocha
  config.include FakeFS::SpecHelpers, fakefs: true

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'
end

ENV["INVOKER_TESTS"] = "true"

def invoker_commander
  Invoker.commander ||= mock
end

def invoker_dns_cache
  Invoker.dns_cache ||= mock
end

def inv_conf_dir
  File.join(ENV['HOME'], '.invoker')
end

def inv_conf_file
  File.join(inv_conf_dir, 'config')
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
itrg-invoker-1.6.1 spec/spec_helper.rb
itrg-invoker-1.6.0 spec/spec_helper.rb
invoker-1.5.8 spec/spec_helper.rb
invoker-1.5.7 spec/spec_helper.rb