Sha256: 6ce8cf7d15afd7a0c74946a9e303105d1577a226d27b2d10676cb54aeeff232b

Contents?: true

Size: 717 Bytes

Versions: 9

Compression:

Stored size: 717 Bytes

Contents

if ENV['COVERAGE']
  require 'simplecov'
  require 'simplecov-rcov-text'
  SimpleCov.formatter = SimpleCov::Formatter::RcovTextFormatter
  SimpleCov.start
end

require 'rspec/autorun'
require 'date'
require 'construct'

# add lib to the load path just like rubygems does
$:.push File.expand_path("../../lib", __FILE__)
require 'metric_fu'
include MetricFu

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[MetricFu.root_dir + "/spec/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  # :suite after/before all specs
  # :each ever describe block
  # :all ever it block

  config.after(:suite) do
    cleanup_test_files
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
metric_fu-4.2.1 spec/spec_helper.rb
metric_fu-4.2.0 spec/spec_helper.rb
metric_fu-4.1.3 spec/spec_helper.rb
metric_fu-4.1.2 spec/spec_helper.rb
metric_fu-4.1.1 spec/spec_helper.rb
metric_fu-4.1.0 spec/spec_helper.rb
metric_fu-4.0.0 spec/spec_helper.rb
metric_fu-3.0.1 spec/spec_helper.rb
metric_fu-3.0.0 spec/spec_helper.rb