clear the gem paths before the test rake tasks so they find previously installed plugins

Fixes #2235
This commit is contained in:
Pere Urbon-Bayes 2014-12-13 21:18:19 +01:00 committed by Jordan Sissel
parent 1315605756
commit 9c66c99a8b

View file

@ -1,6 +1,7 @@
namespace "test" do
task "default" => [ "bootstrap", "test:prep" ] do
Gem.clear_paths
require "logstash/environment"
LogStash::Environment.set_gem_paths!
require 'rspec/core'
@ -8,6 +9,7 @@ namespace "test" do
end
task "fail-fast" => [ "bootstrap", "test:prep" ] do
Gem.clear_paths
require "logstash/environment"
LogStash::Environment.set_gem_paths!
require 'rspec/core'
@ -30,4 +32,4 @@ namespace "test" do
end
task "test" => [ "test:default" ]
task "test" => [ "test:default" ]