Sha256: 0fa2212a10bf266d729dea3905ed1af1f50e126d520cdf52bde1fcfcd31c512b

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require 'test_helper'

class EverythingTest < MTest
  def test_runs_entire_test_suite_with_no_arguments
    output = m('')
    assert_output /14 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 /14 tests/, output
  end

  def test_blank_file_is_quieter
    output = m('bananas')
    assert_no_match /Valid tests to run/, output
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
m-1.3.3 test/everything_test.rb