Sha256: b551146fc355e247e4d13fc869b5288eec261a8b2393660235ef148ad4ca897d

Contents?: true

Size: 887 Bytes

Versions: 5

Compression:

Stored size: 887 Bytes

Contents

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 'webmock/test_unit'
WebMock.disable_net_connect!(:allow_localhost => true)

$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

def unused_port
  s = TCPServer.open(0)
  port = s.addr[1]
  s.close
  port
end

require 'fluent/plugin/mixpanel_ruby_error_handler'
require 'fluent/plugin/out_mixpanel'
require 'fluent/plugin/in_http_mixpanel'

class Test::Unit::TestCase
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
fluent-plugin-mixpanel-enchanced-0.0.13 test/helper.rb
fluent-plugin-mixpanel-enchanced-0.0.12 test/helper.rb
fluent-plugin-mixpanel-enchanced-0.0.11 test/helper.rb
fluent-plugin-mixpanel-enchanced-0.0.10 test/helper.rb
fluent-plugin-mixpanel-0.0.9 test/helper.rb