# encoding: utf-8

$LOAD_PATH << ::File.expand_path('../../lib', __FILE__)

unless RUBY_PLATFORM.include?('java')
  require 'simplecov'
  SimpleCov.command_name 'rspec'
  SimpleCov.start
end

# Pull in all of the gems including those in the `test` group
require 'bundler'
Bundler.require

# Loading support files
if RUBY_VERSION < '1.9'
  Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each { |f| require File.join(File.dirname(f), File.basename(f, '.rb')) }
  Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__)).each { |f| require File.join(File.dirname(f), File.basename(f, '.rb')) }
else
  Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each { |f| require_relative f }
  Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__)).each { |f| require_relative f }
end
