lib/dev/cmd/Test.rb in dev-1.0.237 vs lib/dev/cmd/Test.rb in dev-1.0.238
- old
+ new
@@ -2,10 +2,10 @@
module Cmd
class Test < Array
def refresh
strip_auto_entries
- if(Dir.glob("**/*.spec").count > 0) #if DEV.has_key?(:file_count) && DEV[:file_count].has_key?(:spec) && DEV[:file_count][:spec] > 0
+ if(Dir.glob("**/*.spec").length > 0) #if DEV.has_key?(:file_count) && DEV[:file_count].has_key?(:spec) && DEV[:file_count][:spec] > 0
rspec_cmd='rspec --pattern="**/*.spec"'
self << "{:cmd=>'#{rspec_cmd}', :auto=>true}"
end
Dir.glob("*.gemspec").each { |gs|
\ No newline at end of file