diff options
author | ☈king <rking@sharpsaw.org> | 2012-12-08 08:08:54 -0700 |
---|---|---|
committer | rking@sharpsaw.org <> | 2012-12-09 19:19:38 -0700 |
commit | 6861a36179d5498600bc994aba8110fbd3122e6d (patch) | |
tree | a3b067fbc44c23877704f1988f4833032bc599dd /Rakefile | |
parent | cbf19cc7a47d7a5a2d723eefc48ef1b2130d3220 (diff) | |
download | pry-6861a36179d5498600bc994aba8110fbd3122e6d.tar.gz |
Deduplicate bacon invocation
Surprising how much this thrashed so far.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -48,7 +48,12 @@ task :default => [:test] desc "Run tests" task :test do check_dependencies unless ENV['SKIP_DEP_CHECK'] - all_specs = Dir['spec/**/*_spec.rb'] + all_specs = + if explicit_list = ENV['run'] + explicit_list.split(',') + else + Dir['spec/**/*_spec.rb'] + end all_specs.shuffle! if all_specs.respond_to? :shuffle! system "bacon -Ispec -rubygems -q #{all_specs.join ' '}" end |