Sha256: ba07449cbb788ee4a717ee70ab346c6cf51f54c0019cd2568e1bbb0b45c79415

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 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
    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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
m-1.2.1 test/everything_test.rb
m-1.2.0 test/everything_test.rb
m-1.1.0 test/everything_test.rb