Sha256: 88a35c3659abc59c1ee70d657795b21e16aabfd73997bd407dfca6dedf0dd42f

Contents?: true

Size: 441 Bytes

Versions: 83

Compression:

Stored size: 441 Bytes

Contents

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

Version data entries

83 entries across 83 versions & 14 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 lib/spec/rails/interop/testcase.rb
cavalle-rspec-rails-1.2.2.0.2 lib/spec/rails/interop/testcase.rb
cavalle-rspec-rails-1.2.3.1 lib/spec/rails/interop/testcase.rb
cavalle-rspec-rails-1.2.4.0.1 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.10 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.1 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.2 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.3 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.4 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.5 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.6 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11.7 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.11 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.12 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.6 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.7 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.8 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.9 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.99.1 lib/spec/rails/interop/testcase.rb
dchelimsky-rspec-rails-1.1.99.13 lib/spec/rails/interop/testcase.rb