OSDN Git Service

add rspec-rails
[praisedb/praisedb.git] / vendor / plugins / rspec-rails / lib / spec / rails / interop / testcase.rb
1 module Test
2   module Unit
3     class TestCase
4       # Edge rails (r8664) introduces class-wide setup & teardown callbacks for Test::Unit::TestCase.
5       # Make sure these still get run when running TestCases under rspec:
6       prepend_before(:each) do
7         run_callbacks :setup if respond_to?(:run_callbacks)
8       end
9       append_after(:each) do
10         run_callbacks :teardown if respond_to?(:run_callbacks)
11       end
12     end
13   end
14 end