Skip to content

Commit

Permalink
allow specifying which files to run with rake
Browse files Browse the repository at this point in the history
  • Loading branch information
jneen committed Oct 30, 2012
1 parent 8b86534 commit 4b5431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'rake/clean'
require 'pathname'

task :spec do
spec_files = FileList.new('./spec/**/*_spec.rb')
spec_files = FileList.new(ENV['files'] || './spec/**/*_spec.rb')
switch_spec_files = spec_files.map { |x| "-r#{x}" }.join(' ')
sh "ruby -I./lib -r ./spec/spec_helper #{switch_spec_files} -e Minitest::Unit.autorun"
end
Expand Down

0 comments on commit 4b5431f

Please sign in to comment.