Rakefile in pry-theme-0.1.3 vs Rakefile in pry-theme-0.2.0
- old
+ new
@@ -1,6 +1,15 @@
+def quiet
+ ENV['VERBOSE'] ? '' : '-q'
+end
+
+def test_files
+ paths = FileList['spec/**/*_spec.rb']
+ paths.shuffle!.join(' ')
+end
+
desc "Run tests"
task :test do
- sh "bacon -Itest --automatic --quiet"
+ exec "bacon -Ispec #{ quiet } #{ test_files }"
end
task :default => :test