mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 00:30:12 +01:00
14 lines
441 B
Ruby
14 lines
441 B
Ruby
|
|
module Test
|
||
|
|
module Unit
|
||
|
|
class TestCase
|
||
|
|
# Edge rails (r8664) introduces class-wide setup & teardown callbacks for Test::Unit::TestCase.
|
||
|
|
# Make sure these still get run when running TestCases under rspec:
|
||
|
|
prepend_before(:each) do
|
||
|
|
run_callbacks :setup if respond_to?(:run_callbacks)
|
||
|
|
end
|
||
|
|
append_after(:each) do
|
||
|
|
run_callbacks :teardown if respond_to?(:run_callbacks)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|