diff options
-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 - - - |