logstash/lib/bootstrap/rspec.rb
2016-10-31 17:03:40 -04:00

14 lines
405 B
Ruby
Executable file

# encoding: utf-8
require_relative "environment"
LogStash::Bundler.setup!({:without => [:build]})
require "logstash-core"
require "logstash/environment"
$LOAD_PATH.unshift(File.join(LogStash::Environment::LOGSTASH_CORE, "spec"))
require "rspec/core"
require "rspec"
require 'ci/reporter/rake/rspec_loader'
status = RSpec::Core::Runner.run(ARGV.empty? ? ["spec"] : ARGV).to_i
exit status if status != 0