anoiaque / before_test

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"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

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"

License:MIT License


Languages

Language:Ruby 100.0%