|
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 |
|
|---|
| 6 |
class Test::Unit::TestCase |
|---|
| 7 |
include ActiveSupport::Testing::SetupAndTeardown |
|---|
| 8 |
end |
|---|
| 9 |
|
|---|
| 10 |
module ActiveSupport |
|---|
| 11 |
class TestCase < Test::Unit::TestCase |
|---|
| 12 |
end |
|---|
| 13 |
end |
|---|