summaryrefslogtreecommitdiff
path: root/test/unit/command_line_test.rb
blob: 4f8333a537e19ded1252ed8859596b6d0376ba3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require File.expand_path('../test_helper', __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

  def test_list
    with_multiple_rubies do
      output = leap_bin('list')
      assert_equal 0, $?, "list should exit 0"
      assert output =~ /ns1   dns/m
    end
  end

end