lib/matest/spec_tasks.rb in matest-1.7.2 vs lib/matest/spec_tasks.rb in matest-1.7.3

- old
+ new

@@ -1,10 +1,10 @@ task :spec do arg_files = (ENV["FILES"] && ENV["FILES"].split(/[\s,]+/)) || [ENV["SPEC"]] if arg_files arg_files.map! { |file_name| path = Pathname(file_name.to_s).expand_path - unless Pathname(file_name.to_s.split(":").first).exist? + unless Pathname(file_name.to_s.split(":").first.to_s).exist? raise "Spec file not found: #{file_name.inspect}" end path.directory? ? path.to_s + "/**/*.rb" : path.to_s } end