Sha256: 05832a982b8817176687395f0a222c53077f863e60e368da73f6ac47e9c1396c

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 /10 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 /10 tests/, output
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
m-1.0.1 test/everything_test.rb
m-1.0.0 test/everything_test.rb
m-1.0.0.pre test/everything_test.rb