From 17ccefc4360caea1a80eada324513dc6cb809c75 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 12 Nov 2012 20:29:15 -0200 Subject: Update mocha version to 0.13.0 and change requires --- activesupport/lib/active_support/testing/mochaing.rb | 2 +- activesupport/lib/active_support/testing/setup_and_teardown.rb | 1 - activesupport/test/abstract_unit.rb | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/testing/mochaing.rb b/activesupport/lib/active_support/testing/mochaing.rb index 0161476d79..ae4e7e9a1f 100644 --- a/activesupport/lib/active_support/testing/mochaing.rb +++ b/activesupport/lib/active_support/testing/mochaing.rb @@ -4,4 +4,4 @@ rescue LoadError # Fake Mocha::ExpectationError so we can rescue it in #run. Bleh. Object.const_set :Mocha, Module.new Mocha.const_set :ExpectationError, Class.new(StandardError) -end \ No newline at end of file +end diff --git a/activesupport/lib/active_support/testing/setup_and_teardown.rb b/activesupport/lib/active_support/testing/setup_and_teardown.rb index d21511d4db..e5353f65cf 100644 --- a/activesupport/lib/active_support/testing/setup_and_teardown.rb +++ b/activesupport/lib/active_support/testing/setup_and_teardown.rb @@ -116,7 +116,6 @@ module ActiveSupport end end end - end end end diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index 0382739871..c26a48a490 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -25,7 +25,7 @@ end require 'test/unit' require 'empty_bool' -silence_warnings { require 'mocha' } +silence_warnings { require 'mocha/setup' } ENV['NO_RELOAD'] = '1' require 'active_support' -- cgit v1.2.3