Skip to content

Commit

Permalink
Merge pull request #8180 from freerange/mocha-fixes-supporting-only-0…
Browse files Browse the repository at this point in the history
….13-onwards

Simplify code by taking advantage of latest mocha (v0.13.0).
  • Loading branch information
carlosantoniodasilva committed Nov 13, 2012
2 parents 8f3f50a + 57b333e commit 395d6b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
8 changes: 5 additions & 3 deletions activesupport/lib/active_support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
require 'active_support/testing/assertions'
require 'active_support/testing/deprecation'
require 'active_support/testing/isolation'
require 'active_support/testing/mocha_module'
require 'active_support/testing/constant_lookup'
require 'active_support/core_ext/kernel/reporting'
require 'active_support/deprecation'

begin
silence_warnings { require 'mocha/setup' }
rescue LoadError
end

module ActiveSupport
class TestCase < ::MiniTest::Spec

include ActiveSupport::Testing::MochaModule

# Use AS::TestCase for the base class when describing a model
register_spec_type(self) do |desc|
Class === desc && desc < ActiveRecord::Base
Expand Down
22 changes: 0 additions & 22 deletions activesupport/lib/active_support/testing/mocha_module.rb

This file was deleted.

0 comments on commit 395d6b4

Please sign in to comment.