Sha256: 2dfb6bbb72d6d0206941d879230bf4d1c9c3749728aea753f3d3ecfa5d8bc1dd

Contents?: true

Size: 881 Bytes

Versions: 1

Compression:

Stored size: 881 Bytes

Contents

begin
  require 'simplecov'
  require 'simplecov-rcov'
  class SimpleCov::Formatter::MergedFormatter
    def format(result)
       SimpleCov::Formatter::HTMLFormatter.new.format(result)
       SimpleCov::Formatter::RcovFormatter.new.format(result)
    end
  end
  SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
  SimpleCov.start do
    add_filter "/vendor/"
  end
rescue Exception => e
  puts "Couldn't load simplecov"
  puts e.message
  puts e.backtrace.join("\n")
end

require 'ruby_ami'
require 'countdownlatch'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}

include RubyAMI

RSpec.configure do |config|
  config.mock_with :mocha
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true

  config.before :each do
    uuid = UUIDTools::UUID.random_create
    UUIDTools::UUID.stubs :random_create => uuid
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_ami-1.2.0 spec/spec_helper.rb