Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit b17b78de6eb3f447c204219a2e83afe0795bbce1 1 parent 1b3ed16
@floehopper floehopper authored
Showing with 0 additions and 36 deletions.
  1. +0 −36 test/active_record_test_case.rb
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.