Sha256: 19086109a196ff8bda35c1e5a1a975ac17085d60ed59197e4136f09787d7739c

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

require "pry"
require "simplecov"
SimpleCov.start do
  add_filter "/spec/"
end


require "invoker"
require "invoker/power/power"
$: << File.join(File.dirname(__FILE__), "support")
require "mock_setup_file"
MM = Invoker::IPC::Message

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.mock_framework = :mocha
  config.include MockSetupFile

  config.around do |example|
    original_verbosity = $VERBOSE
    $VERBOSE = nil
    setup_mocked_config_files
    example.run
    remove_mocked_config_files
    $VERBOSE = original_verbosity
  end
  # 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_config
  Invoker.config ||= mock
end

def invoker_commander
  Invoker.commander ||= mock
end

def invoker_dns_cache
  Invoker.dns_cache ||= mock
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
invoker-1.4.1 spec/spec_helper.rb
invoker-1.4.0 spec/spec_helper.rb
invoker-1.3.2 spec/spec_helper.rb
invoker-1.3.1 spec/spec_helper.rb
invoker-1.3.0 spec/spec_helper.rb
invoker-1.2.0 spec/spec_helper.rb