Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
James Mead floehopper authored

Showing 1 changed file with 0 additions and 36 deletions. Show diff stats Hide diff stats

  1. +0 36 test/active_record_test_case.rb
36 test/active_record_test_case.rb
... ... @@ -1,36 +0,0 @@
1   -module ActiveRecordTestCase
2   -
3   - def setup_with_fixtures
4   - methods_called << :setup_with_fixtures
5   - end
6   -
7   - alias_method :setup, :setup_with_fixtures
8   -
9   - def teardown_with_fixtures
10   - methods_called << :teardown_with_fixtures
11   - end
12   -
13   - alias_method :teardown, :teardown_with_fixtures
14   -
15   - def self.method_added(method)
16   - case method.to_s
17   - when 'setup'
18   - unless method_defined?(:setup_without_fixtures)
19   - alias_method :setup_without_fixtures, :setup
20   - define_method(:setup) do
21   - setup_with_fixtures
22   - setup_without_fixtures
23   - end
24   - end
25   - when 'teardown'
26   - unless method_defined?(:teardown_without_fixtures)
27   - alias_method :teardown_without_fixtures, :teardown
28   - define_method(:teardown) do
29   - teardown_without_fixtures
30   - teardown_with_fixtures
31   - end
32   - end
33   - end
34   - end
35   -
36   -end

0 comments on commit b17b78d

Please sign in to comment.
Something went wrong with that request. Please try again.