Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 594 Bytes
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
assert_match /cannot load such file/, output
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
end
Jump to Line
Something went wrong with that request. Please try again.