Permalink
Browse files

ActiveRecordTestCase doesn't appear to be used any more. I think it u…

…sed to be used to simulate what ActiveRecord when it messed with Test::Unit, so I could make sure Mocha worked with Rails.
  • Loading branch information...
1 parent 1b3ed16 commit b17b78de6eb3f447c204219a2e83afe0795bbce1 @floehopper floehopper committed Dec 2, 2008
Showing with 0 additions and 36 deletions.
  1. +0 −36 test/active_record_test_case.rb
@@ -1,36 +0,0 @@
-module ActiveRecordTestCase
-
- def setup_with_fixtures
- methods_called << :setup_with_fixtures
- end
-
- alias_method :setup, :setup_with_fixtures
-
- def teardown_with_fixtures
- methods_called << :teardown_with_fixtures
- end
-
- alias_method :teardown, :teardown_with_fixtures
-
- def self.method_added(method)
- case method.to_s
- when 'setup'
- unless method_defined?(:setup_without_fixtures)
- alias_method :setup_without_fixtures, :setup
- define_method(:setup) do
- setup_with_fixtures
- setup_without_fixtures
- end
- end
- when 'teardown'
- unless method_defined?(:teardown_without_fixtures)
- alias_method :teardown_without_fixtures, :teardown
- define_method(:teardown) do
- teardown_without_fixtures
- teardown_with_fixtures
- end
- end
- end
- end
-
-end

0 comments on commit b17b78d

Please sign in to comment.