Skip to content

Commit

Permalink
Let's see what ruby version we are running.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Dec 22, 2009
1 parent 80990ea commit f5a1bcc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -62,12 +62,13 @@ task :test => "test:units"
namespace :test do
Rake::TestTask.new(:all) do |t|
t.test_files = FileList[
'test/*_test.rb',
'test/lib/*_test.rb',
'test/contrib/*_test.rb',
'test/functional/*_test.rb'
]
t.warning = true
t.verbose = false
t.verbose = true
end

Rake::TestTask.new(:units) do |t|
Expand Down
2 changes: 1 addition & 1 deletion rakelib/ruby19.rake
Expand Up @@ -81,7 +81,7 @@ namespace "ruby19" do

desc "Run the all the tests in Ruby 1.9"
task :all, :opts, :needs => [:env19] do |t, args|
test_files = FileList['test/functional/*_test.rb', 'test/lib/*_test.rb']
test_files = FileList['test/*_test.rb', 'test/functional/*_test.rb', 'test/lib/*_test.rb']
Ruby19.run_tests(test_files, args.opts)
end
end
Expand Down
9 changes: 9 additions & 0 deletions test/ruby_version_test.rb
@@ -0,0 +1,9 @@
require 'test/unit'

class RubyVersionTest < Test::Unit::TestCase
def test_ruby_version
puts(`which ruby`)
puts(`which ruby19`)
puts "\nRUBY VERSION = #{RUBY_VERSION}"
end
end

0 comments on commit f5a1bcc

Please sign in to comment.