Sha256: 9acbc8ecd7e601b52e647ac516635d57c4bd44abc6bd588ef924d94fe124152d
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'test/unit' require 'clean_test/test_case' class TestSimpleGiven < Clean::Test::TestCase test_that "when assigning @x to 4, it is 4" do Given { @x = nil } When { @x = 4 } Then { assert_equal 4,@x } end test_that { Given { @x = nil } When { @x = 4 } Then { assert_equal 4,@x } } def test_that_test_that_barfs_with_no_block assert_raises RuntimeError do self.class.test_that "foo" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clean_test-0.10.0 | test/test_test_that.rb |