test/helper.rb in fluent-plugin-ec2-metadata-0.0.8 vs test/helper.rb in fluent-plugin-ec2-metadata-0.0.9
- old
+ new
@@ -1,26 +1,37 @@
+require "codeclimate-test-reporter"
+CodeClimate::TestReporter.start
+
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'test/unit'
+require 'test/unit'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
+
require 'fluent/test'
unless ENV.has_key?('VERBOSE')
nulllogger = Object.new
nulllogger.instance_eval {|obj|
def method_missing(method, *args)
# pass
end
}
$log = nulllogger
+end
+
+require 'vcr'
+VCR.configure do |config|
+ config.cassette_library_dir = 'test/cassettes'
+ config.hook_into :webmock
+ config.ignore_hosts 'codeclimate.com'
end
require 'fluent/plugin/out_ec2_metadata'
class Test::Unit::TestCase