Sha256: f8ddc82a72621c96155e91cc4e31ea54fe4fc79512396e3278cb7ac7b176a668
Contents?: true
Size: 981 Bytes
Versions: 1
Compression:
Stored size: 981 Bytes
Contents
require 'test/unit' require 'test/unit/given/simple' require 'test/unit/given/any' require 'test/unit/given/test_that' module Test module Unit module Given # Public: A Base class brings in both the Simple Given/Then/When # stuff as well as the +test_that+ method you can # use to define tests a bit more fluently. # # Example # # class TestCircle < Test::Unit::Given::TestCase # test_that { # Given { @circle = Circle.new(10) } # When { @area = @circle.area } # Then { assert_equal 314,@area } # } # end class TestCase < Test::Unit::TestCase include Simple 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_unit-given-0.9.4 | lib/test/unit/given/test_case.rb |