Sha256: 195db8e15959444fad6fe7971cc80696710c437e8a2328eb5534549f540e4c8e
Contents?: true
Size: 987 Bytes
Versions: 2
Compression:
Stored size: 987 Bytes
Contents
require 'test_helper' class EverythingTest < MTest def test_runs_entire_test_suite_with_no_arguments output = m('') assert_output(/12 tests/, output) end def test_missing_file_gives_a_decent_error_message output = m('examples/thisdoesnexist_test.rb') assert !$?.success? assert_match(/Failed loading test file/, output) if defined? JRUBY_VERSION assert_match(/no such file to load/, output) else assert_match(/cannot load such file/, output) end end def test_running_tests_within_a_subdirectory output = m('examples/subdir') assert_output(/3 tests/, output) output = m('examples') assert_output(/12 tests/, output) end def test_running_tests_with_failures_within_a_subdirectory output = m('examples/subdir_with_failures') assert_output(/1 tests, 1 assertions, 1 failures/, output) end def test_blank_file_is_quieter output = m('bananas') assert(/Valid tests to run/ !~ output) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
m-1.4.2 | test/everything_test.rb |
m-1.4.0 | test/everything_test.rb |