Rakefile in muck-activities-0.1.27 vs Rakefile in muck-activities-3.0.0
- old
+ new
@@ -1,26 +1,18 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-desc 'Default: run unit tests.'
-task :default => :test
+desc 'Default: run tests.'
+task :default => :spec
-desc 'Test the muck_activities plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test/rails_root/test'
- t.pattern = 'test/rails_root/test/**/*_test.rb'
- t.verbose = true
-end
-
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
#t.libs << 'lib'
- t.libs << 'test/rails_root/lib'
- t.pattern = 'test/rails_root/test/**/*_test.rb'
+ t.libs << 'test/rails_test/lib'
+ t.pattern = 'test/rails_test/test/**/*_test.rb'
t.verbose = true
t.output_dir = 'coverage'
t.rcov_opts << '--exclude "gems/*"'
end
rescue LoadError
@@ -38,10 +30,10 @@
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Translate this gem'
task :translate do
- file = File.join(File.dirname(__FILE__), 'locales', 'en.yml')
+ file = File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml')
system("babelphish -o -y #{file}")
end
begin
require 'jeweler'