Class: Clean::Test::TestCase

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
Any, GivenWhenThen, TestThat
Defined in:
lib/clean_test/test_case.rb

Overview

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

Constant Summary

Constants included from Any

Any::MAX_RAND

Instance Method Summary collapse

Methods included from Any

#any_int, #any_number, #any_sentence, #any_string, #any_symbol, setup_random_seed

Methods included from TestThat

included

Methods included from GivenWhenThen

#Given, #mocks_shouldve_been_called, #the_test_runs

Instance Method Details

#default_testObject

Avoid the stupid behavior of complaining that no tests were specified for 1.8.-like rubies



27
28
# File 'lib/clean_test/test_case.rb', line 27

def default_test
end