diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/command_line_test.rb | 12 | ||||
-rw-r--r-- | test/unit/config_object_list_test.rb | 2 | ||||
-rw-r--r-- | test/unit/config_object_test.rb | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb new file mode 100644 index 0000000..ec4c2d6 --- /dev/null +++ b/test/unit/command_line_test.rb @@ -0,0 +1,12 @@ +require File.expand_path('test_helper', File.dirname(__FILE__)) + +class CommandLineTest < MiniTest::Unit::TestCase + + def test_help + with_multiple_rubies do + output = leap_bin('help') + assert_equal 0, $?, "help should exit 0 -- #{output}" + end + end + +end diff --git a/test/unit/config_object_list_test.rb b/test/unit/config_object_list_test.rb index a3b76f2..a507094 100644 --- a/test/unit/config_object_list_test.rb +++ b/test/unit/config_object_list_test.rb @@ -1,6 +1,6 @@ require File.dirname(__FILE__) + '/test_helper' -class TestMeme < MiniTest::Unit::TestCase +class ConfigObjectListTest < MiniTest::Unit::TestCase def test_node_search nodes = manager.nodes['name' => 'vpn1'] diff --git a/test/unit/config_object_test.rb b/test/unit/config_object_test.rb index 0c293c2..b981f3b 100644 --- a/test/unit/config_object_test.rb +++ b/test/unit/config_object_test.rb @@ -1,6 +1,6 @@ require File.expand_path('test_helper', File.dirname(__FILE__)) -class TestMeme < MiniTest::Unit::TestCase +class ConfigObjectTest < MiniTest::Unit::TestCase def test_bracket_lookup domain = manager.provider.domain |