summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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