diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 03:08:08 +0100 |
---|---|---|
committer | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 03:08:08 +0100 |
commit | 983bd01f42a9a3f106c27b37b1074c648263e861 (patch) | |
tree | 4aa1058693bd0b7a16463f578d28c4b5231c9354 /activesupport/lib/active_support | |
parent | d6d059f2807f3cf3d29652b02d5940abd4561bee (diff) | |
download | rails-983bd01f42a9a3f106c27b37b1074c648263e861.tar.gz rails-983bd01f42a9a3f106c27b37b1074c648263e861.tar.bz2 rails-983bd01f42a9a3f106c27b37b1074c648263e861.zip |
we need test-unit on mri 1.9
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/ruby/yarv.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby/yarv.rb b/activesupport/lib/active_support/testing/performance/ruby/yarv.rb index d226e75d0d..ed2b8d6803 100644 --- a/activesupport/lib/active_support/testing/performance/ruby/yarv.rb +++ b/activesupport/lib/active_support/testing/performance/ruby/yarv.rb @@ -1,3 +1,10 @@ +begin + require 'test-unit' +rescue LoadError + $stderr.puts 'Specify test-unit as application\'s dependency in Gemfile to run benchmarks.' + exit +end + module ActiveSupport module Testing module Performance @@ -57,6 +64,3 @@ module ActiveSupport end end end - - - |