Sha256: da796b0b6bc84adb491591b802630c68c0c058b990919b5145ba6cf3226ede94

Contents?: true

Size: 873 Bytes

Versions: 2

Compression:

Stored size: 873 Bytes

Contents

# encoding: utf-8
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 = RubyAMI.new_uuid
    RubyAMI.stubs :new_uuid => uuid
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_ami-1.2.5 spec/spec_helper.rb
ruby_ami-1.2.4 spec/spec_helper.rb