Skip to content

Commit

Permalink
Merge pull request resque#522 from tenderlove/testing
Browse files Browse the repository at this point in the history
removing leftright, simplify test task
  • Loading branch information
hone committed Feb 28, 2012
2 parents ea78953 + 85167a6 commit e4a2317
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -6,7 +6,6 @@ group :test do
gem "rake"
gem "rack-test", "~> 0.5"
gem "mocha", "~> 0.9.7"
gem "leftright", :platforms => :mri_18
gem "yajl-ruby", "~>0.8.2", :platforms => :mri
gem "json", "~>1.5.3", :platforms => [:jruby, :rbx]
gem "hoptoad_notifier"
Expand Down
17 changes: 5 additions & 12 deletions Rakefile
Expand Up @@ -20,18 +20,11 @@ require 'rake/testtask'

task :default => :test

if command?(:rg)
desc "Run the test suite with rg"
task :test do
Dir['test/**/*_test.rb'].each do |f|
sh("rg #{f}")
end
end
else
Rake::TestTask.new do |test|
test.libs << "test"
test.test_files = FileList['test/**/*_test.rb']
end
Rake::TestTask.new do |test|
test.verbose = true
test.libs << "test"
test.libs << "lib"
test.test_files = FileList['test/**/*_test.rb']
end

if command? :kicker
Expand Down

0 comments on commit e4a2317

Please sign in to comment.