summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-03-22 22:47:05 -0700
committerAndre Arko <andre@arko.net>2015-03-22 22:47:08 -0700
commit51db7efb0db6a077a5e3b9222ff74d1aabf9f169 (patch)
tree03e94e78210c81420551af86ead189c912664b46
parenta12dc2a294e1efc6e013dd61c54f8c1f9cdcc4a7 (diff)
downloadbundler-51db7efb0db6a077a5e3b9222ff74d1aabf9f169.tar.gz
use tests' copy of rake to verify gem tasks
/cc @segiddins
-rw-r--r--spec/runtime/gem_tasks_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index 924eb06d20..5124b05a3c 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -18,7 +18,10 @@ describe "require 'bundler/gem_tasks'" do
end
it "includes the relevant tasks" do
- sys_exec "rake -T"
+ with_gem_path_as(Spec::Path.base_system_gems.to_s) do
+ sys_exec "ruby -S rake -T"
+ end
+
expect(err).to eq("")
expected_tasks = [
"rake build",