Sha256: 39d6d8bb4f3e3d7c96468000bb78ce735717c548c5cb4e722b887a88df1ab54c

Contents?: true

Size: 841 Bytes

Versions: 1

Compression:

Stored size: 841 Bytes

Contents

require 'test/unit'
require 'clean_test/given_when_then'
require 'clean_test/any'
require 'clean_test/test_that'

module Clean # :nodoc:
  module Test # :nodoc:
    # Public: A Base class brings in all modules that are part
    # of Clean::Test.
    #
    # Example
    #
    #     class TestCircle < Clean::Test::TestCase
    #       test_that {
    #         Given { @circle = Circle.new(10) }
    #         When  { @area = @circle.area }
    #         Then  { assert_equal 314,@area }
    #       }
    #     end
    class TestCase < ::Test::Unit::TestCase
      include GivenWhenThen
      include TestThat
      include Any
      if RUBY_VERSION =~ /^1\.8\./
        # Avoid the stupid behavior of 
        # complaining that no tests were specified for 1.8.-like rubies
        def default_test
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clean_test-0.10.0 lib/clean_test/test_case.rb