summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-28 01:27:29 -0800
committerAndre Arko <andre@arko.net>2013-12-28 01:27:29 -0800
commite2cf0b1548b50e73a8cabc934364d3d0de37c7f0 (patch)
tree391e8ab08117531774a7e26d81c426c334db34b3
parent51d7abed6ce000954e39c0525f3e83d0454c54f1 (diff)
downloadbundler-test_default_gems.tar.gz
spec.summary might be niltest_default_gems
-rw-r--r--spec/support/helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index f5387bc214..b387c2964a 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -23,7 +23,9 @@ module Spec
next if path == system_gem_path
Dir.glob("#{path}/specifications/*").each do |spec_path|
spec = eval(File.read(spec_path))
- @@ruby19_specifications << spec_path if spec.summary.include?("is bundled with Ruby")
+ if spec.summary && spec.summary.include?("is bundled with Ruby")
+ @@ruby19_specifications << spec_path
+ end
end
end
end