summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-07-02 08:43:15 +0530
committerSamuel Giddins <segiddins@segiddins.me>2016-08-24 15:20:28 -0500
commit2b80fb61086b89b96e77e12adf21b2b17e627da6 (patch)
treea357a4490ea053e75157edb228d479bea6f9fd17
parentb1a3a151ff410a7b727a98b86b0f19980ed7eb5c (diff)
downloadbundler-2b80fb61086b89b96e77e12adf21b2b17e627da6.tar.gz
Installing gems without version after the ones with version for tests
-rw-r--r--spec/support/rubygems_ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index 5f1c43592a..85ed1bdf0f 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -35,7 +35,7 @@ module Spec
FileUtils.rm_rf(Path.base_system_gems)
FileUtils.mkdir_p(Path.base_system_gems)
puts "installing gems for the tests to use..."
- DEPS.each {|n, v| install_gem(n, v) }
+ DEPS.sort {|a, _| a[1].nil? ? 1 : -1 }.each {|n, v| install_gem(n, v) }
File.open(manifest_path, "w") {|f| f << manifest.join }
end