Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
spec.summary might be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 28, 2013
1 parent 51d7abe commit e2cf0b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/support/helpers.rb
Expand Up @@ -23,7 +23,9 @@ def copy_ruby_19_default_gems!(original_gem_path)
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
Expand Down

0 comments on commit e2cf0b1

Please sign in to comment.