summaryrefslogtreecommitdiff
path: root/spec/support/matchers.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-07-01 01:38:33 -0700
committerwycats <wycats@gmail.com>2010-07-01 01:38:33 -0700
commitb04d92374e804b0d346b818e08ce8f0226c5b0a0 (patch)
treea205b67d579d3c0c56c8ad146c6cc5d88fb7cb0b /spec/support/matchers.rb
parente38a088289f66cc93a0d6d3b4c5d369517b1fc88 (diff)
downloadbundler-b04d92374e804b0d346b818e08ce8f0226c5b0a0.tar.gz
By default, do not expand submodules
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r--spec/support/matchers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb
index ab2e74e1db..19c9b0f197 100644
--- a/spec/support/matchers.rb
+++ b/spec/support/matchers.rb
@@ -43,10 +43,10 @@ module Spec
def should_not_be_installed(*names)
opts = names.last.is_a?(Hash) ? names.pop : {}
- groups = opts[:groups] || []
+ groups = Array(opts[:groups]) || []
names.each do |name|
name, version = name.split(/\s+/)
- run <<-R, *groups
+ run <<-R, *(groups + [opts])
begin
require '#{name}'
puts #{Spec::Builders.constantize(name)}