Files
growstuff/lib/tasks/testing.rake
Miles Gould 387d68185d Wrap dev/test Rake tasks in error recovery
Rake was dying due to missing gems in production.
2012-09-24 21:05:20 +01:00

15 lines
215 B
Ruby

require 'rake'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :run_tests do
system("rspec spec/")
system("rake test")
end
rescue LoadError
end