From 8b5c73f61f525e138719742459f5a8b984d78ab0 Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Sat, 2 Jul 2016 08:43:15 +0530 Subject: Installing gems without version after the ones with version for tests --- spec/support/rubygems_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/rubygems_ext.rb') 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 -- cgit v1.2.3