Sha256: cd713f9525cab856963a60ce7bbc126e04cd70ed749246a7419838cc9e632cd0
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
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.to_s).exist? raise "Spec file not found: #{file_name.inspect}" end path.directory? ? path.to_s + "/**/*.rb" : path.to_s } end all_files = Rake::FileList["./spec/**/*_spec.rb"] files = arg_files || all_files puts "\nRuning tests for: #{ files.join(" ") }\n\n" system *["matest"].concat(files) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matest-1.7.3 | lib/matest/spec_tasks.rb |