Created
April 15, 2009 22:07
-
-
Save jaydonnell/96057 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "run some tests" | |
task :test do | |
options = ENV['options'] | |
files = ARGV[1,ARGV.length] | |
if files.empty? | |
files = FileList['test/**/*.rb'].exclude('test/test_helper.rb') | |
end | |
puts cmd = "jruby #{options} -S spec -c #{ files.join(' ') }" | |
system cmd | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment