Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated rake file test tasks.
  • Loading branch information
jnunemaker committed Nov 5, 2010
1 parent d5f1a35 commit 5e97a9b
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Rakefile
Expand Up @@ -3,25 +3,21 @@ require 'rake'
require 'rake/testtask'
require File.expand_path('../lib/mongo_mapper/version', __FILE__)

Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/{functional,unit}/**/test_*.rb'
end

namespace :test do
Rake::TestTask.new(:all) do |test|
Rake::TestTask.new(:lint) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/{functional,unit}/**/test_*.rb'
test.pattern = 'test/test_active_model_lint.rb'
end

desc "Run active model lint test"
task :am_lint do
sh 'ruby -Itest -rubygems test/test_active_model_lint.rb'
end
end

desc 'Runs all tests against ActiveSupport 2 and 3'
task :test do
Rake::Task['test:all'].invoke
Rake::Task['test:am_lint'].invoke
task :all => ['test', 'test:lint']
end

task :default => :test
task :default => 'test:all'

desc 'Builds the gem'
task :build do
Expand Down

0 comments on commit 5e97a9b

Please sign in to comment.