Rakefile in rockstar-0.4.0 vs Rakefile in rockstar-0.4.1
- old
+ new
@@ -1,9 +1,9 @@
# Rakefile
require 'rubygems'
require 'rake'
-require 'lib/rockstar/version'
+require File.expand_path('../lib/rockstar/version', __FILE__)
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rockstar"
@@ -17,5 +17,16 @@
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+task :test => :check_dependencies
+
+task :default => :test