Skip to content

Instantly share code, notes, and snippets.

@jaydonnell
Created April 15, 2009 22:07
Show Gist options
  • Save jaydonnell/96057 to your computer and use it in GitHub Desktop.
Save jaydonnell/96057 to your computer and use it in GitHub Desktop.
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