Skip to content

Instantly share code, notes, and snippets.

@tjstankus
Created April 23, 2009 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjstankus/100555 to your computer and use it in GitHub Desktop.
Save tjstankus/100555 to your computer and use it in GitHub Desktop.
namespace :test do
Rake::TestTask.new(:gems => :environment) do |t|
t.libs << "test"
if ENV['GEM']
t.pattern = "vendor/gems/#{ENV['GEM']}/test/**/*_test.rb"
else
t.pattern = 'vendor/gems/*/**/test/**/*_test.rb'
end
t.verbose = true
end
Rake::Task['test:gems'].comment = "Run the gem tests in vendor/gems/*/**/test (or specify with GEM=name)"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment