Skip to content

Commit

Permalink
add an rspec shim to complement the old bin/logstash rspec way of run…
Browse files Browse the repository at this point in the history
…ning specs in logstash

simplify the rspec shim codebase

add bin/rspec to the exclude list for packaging

removed leftover

Fixes elastic#3047
  • Loading branch information
Pere Urbon-Bayes authored and jordansissel committed Apr 20, 2015
1 parent bde2691 commit 0b72d06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/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
1 change: 1 addition & 0 deletions rakelib/artifacts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace "artifact" do
@exclude_paths << "**/test/files/slow-xpath.xml"
@exclude_paths << "**/logstash-*/spec"
@exclude_paths << "bin/bundle"
@exclude_paths << "bin/rspec"

@exclude_paths
end
Expand Down

0 comments on commit 0b72d06

Please sign in to comment.