Sha256: 736fd0d47f9a9975ddb84e445fb04658c32af703c678870270e0f0a6dada7b29
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
task :spec do arg_files = (ENV["FILES"] && ENV["FILES"].split(/[\s,]+/)) || [ENV["SPEC"]] if arg_files.any? arg_files.map! { |file_name| path = Pathname(file_name.to_s).expand_path unless Pathname(file_name.to_s.split(":").first).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).join(" ") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matest-1.7.4 | lib/matest/spec_tasks.rb |