diff options
author | Andre Arko <andre@arko.net> | 2013-12-28 01:27:29 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-12-28 01:27:29 -0800 |
commit | e2cf0b1548b50e73a8cabc934364d3d0de37c7f0 (patch) | |
tree | 391e8ab08117531774a7e26d81c426c334db34b3 | |
parent | 51d7abed6ce000954e39c0525f3e83d0454c54f1 (diff) | |
download | bundler-test_default_gems.tar.gz |
spec.summary might be niltest_default_gems
-rw-r--r-- | spec/support/helpers.rb | 4 |
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 |