Sha256: 58038fc760148f8f7751e36d65c73b551ab410f1bd3db1fff3b23387f1120b3f

Contents?: true

Size: 705 Bytes

Versions: 2

Compression:

Stored size: 705 Bytes

Contents

require 'test/unit/given/simple'
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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_unit-given-0.1.0 lib/test/unit/given/test_case.rb
test_unit-given-0.0.1 lib/test/unit/given/test_case.rb