Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/activesupport/lib/active_support/test_case.rb

Revision 8570, 311 bytes (checked in by bitsweat, 6 months ago)

* Continue evolution toward ActiveSupport::TestCase and friends. #10679 [Josh Peek]

* TestCase: introduce declared setup and teardown callbacks. Pass a list of methods and an optional block to call before setup or after teardown. Setup callbacks are run in the order declared; teardown callbacks are run in reverse. [Jeremy Kemper]

Line 
1 require 'test/unit/testcase'
2 require 'active_support/testing/setup_and_teardown'
3 require 'active_support/testing/default'
4
5 # TODO: move to core_ext
6 class Test::Unit::TestCase #:nodoc:
7   include ActiveSupport::Testing::SetupAndTeardown
8 end
9
10 module ActiveSupport
11   class TestCase < Test::Unit::TestCase
12   end
13 end
Note: See TracBrowser for help on using the browser.