Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ def gem_opt
defined?(Gem) ? "-rubygems" : ""
end

def ruby
require 'rbconfig'
File.join([Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']]) << Config::CONFIG['EXEEXT']
end

# --------------------------------------------------
# Tests
# --------------------------------------------------
Expand All @@ -16,8 +11,8 @@ namespace(:test) do

desc "Run all tests"
task(:all) do
tests = Dir['test/**/test_*.rb'] - ['test/test_helper.rb']
exit system(%Q{#{ruby} #{gem_opt} -I.:lib -e"%w( #{tests.join(' ')} ).each {|file| require file }"})
tests = FileList['test/**/test_*.rb'] - FileList['test/test_helper.rb']
ruby %(#{gem_opt} -I.:lib -e"%w( #{tests.join(' ')} ).each {|file| require file }")
end

desc "Run all tests on multiple ruby versions (requires rvm)"
Expand Down