logstash/bin/rspec
Pere Urbon-Bayes 3981a2bdbc add an rspec shim to complement the old bin/logstash rspec way of running specs in logstash
simplify the rspec shim codebase

add bin/rspec to the exclude list for packaging

removed leftover

Fixes #3047
2015-04-20 15:47:47 +00:00

14 lines
359 B
Ruby
Executable file

#!/usr/bin/env ruby
$LOAD_PATH << File.expand_path(File.join("__FILE__", "..", "lib"))
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), "../spec"))
require "logstash/environment"
require "logstash/bundler"
LogStash::Bundler.setup!
require "rspec/core"
require "rspec"
status = RSpec::Core::Runner.run(ARGV).to_i
exit status if status != 0