Sha256: 1aa245d50cce3833dbe84d429c7712c5f4e073f6ea5460b28a73aa4bd799b871
Contents?: true
Size: 874 Bytes
Versions: 3
Compression:
Stored size: 874 Bytes
Contents
require 'test_helper' class OptionsTest < MTest def test_short_help_option output = m('-h') assert_output(/^Usage: m \[OPTIONS\] \[FILES\]/, output) end def test_long_help_option output = m('--help') assert_output(/^Usage: m \[OPTIONS\] \[FILES\]/, output) end def test_verbose_option output = m('--version') assert_output(/^m #{M::VERSION}/, output) end def test_short_line_option output = m('-l20 examples/minitest_4_example_test.rb') assert_output(/1 tests, 1 assertions/, output) end def test_long_line_option output = m('--line 20 examples/minitest_4_example_test.rb') assert_output(/1 tests, 1 assertions/, output) end def test_line_option_has_precedence_over_colon_format output = m('--line 20 examples/minitest_4_example_test.rb:2') assert_output(/1 tests, 1 assertions/, output) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
m-1.4.2 | test/options_test.rb |
m-1.4.0 | test/options_test.rb |
m-1.3.4 | test/options_test.rb |