Sha256: 702dbf7767a248db9c738e5921ea17bec0b2a663dd19591e9cc7a05495b21614

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)

require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
  coverage_dir('coverage/')
end

require 'rspec/core'
require 'vagrant-adam'

RSpec.configure do |config|
  config.formatter = :documentation

  # a little syntactic sugar
  config.alias_it_should_behave_like_to :it_has_behavior, 'has behavior:'

  # Use color in STDOUT
  config.color_enabled = true

  # Use color not only in STDOUT but also in pagers and files
  config.tty = true

  # run the examples in random order
  config.order = :rand

  # specify metadata with symobls only (ie no '=> true' required)
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true
end

# @return [String] the path to the fixture file
def support_path(filename)
  File.expand_path("../../support/#{filename}", __FILE__)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-adam-0.5.0a spec/unit/spec_helper.rb
vagrant-adam-0.4.0a spec/unit/spec_helper.rb
vagrant-adam-0.3.0a spec/unit/spec_helper.rb
vagrant-adam-0.2.0a spec/unit/spec_helper.rb
vagrant-adam-0.1.0a spec/unit/spec_helper.rb