Sha256: 2601a64bac9ad383ef9199fa44fab010857dcb53cf459b7281c63c44bd34e8f5
Contents?: true
Size: 839 Bytes
Versions: 6
Compression:
Stored size: 839 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
6 entries across 6 versions & 1 rubygems