Skip to content

Instantly share code, notes, and snippets.

@jtrupiano
Created February 18, 2010 14:42
Show Gist options
  • Save jtrupiano/307699 to your computer and use it in GitHub Desktop.
Save jtrupiano/307699 to your computer and use it in GitHub Desktop.
Force a specific version of hydra on remote and local machines
begin
gem 'hydra', '= 0.11.0'
require 'hydra'
require 'hydra/tasks'
Hydra::TestTask.new('hydra:units') do |t|
t.add_files 'test/unit/**/*_test.rb'
end
Hydra::TestTask.new('hydra:functionals') do |t|
t.add_files 'test/functional/**/*_test.rb'
end
Hydra::TestTask.new('hydra:integration') do |t|
t.add_files 'test/integration/**/*_test.rb'
end
Hydra::TestTask.new('hydra') do |t|
t.add_files 'test/unit/**/*_test.rb'
t.add_files 'test/functional/**/*_test.rb'
t.add_files 'test/integration/**/*_test.rb'
end
Hydra::RemoteTask.new('db:setup')
rescue LoadError
# don't sweat hydra missing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment