Make enable to execute setup before one given test with TestUnit" .With RSpec we can do before test do ... This gem enable to do so with test unit"
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
MIT-LICENCE
README.rdoc
before_test.gemspec

README.rdoc

Overview

With RSpec we can do before test do ... This gem enable to do so with test unit

Usage

require 'test_before'

class  .... < Test::Unit::TestCase

  before_test :test_me, :setup_for_test_me

  def test_me
    assert_equal "Cup of tea please", @var # OK
  end

  private

  def setup_for_test_me
    @var = "Cup of tea please"
  end

end

Install

gem install before_test

Dependencies

Doesn't work with ActiveSupport 3 (In Development)