Skip to content
Browse files

- Fixed a rubygems deprecation in autotest

[git-p4: depot-paths = "//src/ZenTest/dev/": change = 6302]
  • Loading branch information...
1 parent 07bdf3c commit a38ca41e44cefb0d46cdf674f151e4cac0fdda4e @zenspider zenspider committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/autotest.rb
View
2 lib/autotest.rb
@@ -223,7 +223,7 @@ def self.autodiscover
#
# I'm removing this code once a sane rspec goes out.
- hacky_discovery = Gem.source_index.gems.any? { |n,_| n =~ /^rspec/ }
+ hacky_discovery = Gem::Specification.all.any? { |s| s.name =~ /^rspec/ }
$: << '.' if hacky_discovery
Gem.find_files("autotest/discover").each do |f|

0 comments on commit a38ca41

Please sign in to comment.
Something went wrong with that request. Please try again.