Permalink
Browse files

we need test-unit on mri 1.9

  • Loading branch information...
1 parent d6d059f commit 983bd01f42a9a3f106c27b37b1074c648263e861 @goncalossilva goncalossilva committed Mar 28, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 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 @@ def measure
end
end
end
-
-
-

0 comments on commit 983bd01

Please sign in to comment.