Sha256: b78615d6b1454991dc124fdbabe51ac1099af56024a013f7f90b18efd7793c9b

Contents?: true

Size: 1.01 KB

Versions: 18

Compression:

Stored size: 1.01 KB

Contents

# SimpleCov must run _first_ according to its README
if ENV['COVERAGE']
  require 'simplecov'

  # monkey-patch to prevent SimpleCov from reporting coverage percentage
  class SimpleCov::Formatter::HTMLFormatter
    def output_message(_message)
      nil
    end
  end

  SimpleCov.adapters.define 'gem' do
    add_filter '/spec/'
    add_filter '/vendor/'

    add_group 'Libraries', '/lib/'
  end

  SimpleCov.minimum_coverage(84)
  SimpleCov.start 'gem'
end

require 'bundler/setup'
require 'vcloud/core'
require 'vcloud/tools/tester'
require 'support/stub_fog_interface.rb'
require 'support/integration_helper'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

# To enable Fog Mock mode use FOG_CREDENTIAL=fog_mock and FOG_MOCK=true
# If you do not have configuration for fog_mock in your vcloud_tools_testing_config.yaml,
# the test data is defined here: https://github.com/fog/fog/blob/master/lib/fog/vcloud_director/compute.rb#L483-L733
# 
if ENV['FOG_MOCK']
  Fog.mock!
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vcloud-core-2.0.0 spec/spec_helper.rb
vcloud-core-1.2.0 spec/spec_helper.rb
vcloud-core-1.1.0 spec/spec_helper.rb
vcloud-core-1.0.2 spec/spec_helper.rb
vcloud-core-1.0.1 spec/spec_helper.rb
vcloud-core-1.0.0 spec/spec_helper.rb
vcloud-core-0.16.1 spec/spec_helper.rb
vcloud-core-0.16.0 spec/spec_helper.rb
vcloud-core-0.15.0 spec/spec_helper.rb
vcloud-core-0.14.0 spec/spec_helper.rb
vcloud-core-0.13.0 spec/spec_helper.rb
vcloud-core-0.12.0 spec/spec_helper.rb
vcloud-core-0.11.0 spec/spec_helper.rb
vcloud-core-0.10.0 spec/spec_helper.rb
vcloud-core-0.9.0 spec/spec_helper.rb
vcloud-core-0.8.0 spec/spec_helper.rb
vcloud-core-0.7.0 spec/spec_helper.rb
vcloud-core-0.6.0 spec/spec_helper.rb