Sha256: 757801d0cc0d5a6d9a1d40104f3d0f33bf35b0799a6c584a101de89734b15eca
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
require 'test_helper' class TestUnitTest < MTest def test_run_simple_test_by_line_number output = m('test/examples/test_unit_example_test.rb:7') assert_output /1 tests, 1 assertions/, output end def test_runs_entire_test_without_line_number output = m('test/examples/test_unit_example_test.rb') assert_output /2 tests/, output end def test_run_inside_of_test output = m('test/examples/test_unit_example_test.rb:8') assert_output /1 tests, 1 assertions/, output end def test_run_on_end_of_test output = m('test/examples/test_unit_example_test.rb:9') assert_output /1 tests, 1 assertions/, output end def test_run_inside_big_test output = m('test/examples/test_unit_example_test.rb:14') assert_output /1 tests, 3 assertions/, output end def test_run_on_blank_line output = m('test/examples/test_unit_example_test.rb:2') assert !$?.success? assert_match /No tests found on line 2. Valid tests to run:/, output assert_match %r{ test_apple: m test/examples/test_unit_example_test\.rb:7}, output assert_match %r{test_banana: m test/examples/test_unit_example_test\.rb:11}, output end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
m-0.0.1 | test/test_unit_test.rb |