aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/rubygems_ext.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-07-02 08:43:15 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-07-02 22:06:10 +0530
commit8b5c73f61f525e138719742459f5a8b984d78ab0 (patch)
tree5566366008cfb4d6697f91b6d4012f1016565a13 /spec/support/rubygems_ext.rb
parentfdf7feb682558831c00df04c2258e9db5ab33629 (diff)
downloadbundler-8b5c73f61f525e138719742459f5a8b984d78ab0.tar.gz
Installing gems without version after the ones with version for tests
Diffstat (limited to 'spec/support/rubygems_ext.rb')
-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 862be3db..e4365031 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -36,7 +36,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