File: test_cli.rb

package info (click to toggle)
ruby-beaker-hostgenerator 1.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,556 kB
  • sloc: ruby: 3,059; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'minitest/autorun'

require 'beaker-hostgenerator/cli'

class TestUtil < Minitest::Test

  def test_new_with_list_option
    assert_instance_of(String, BeakerHostGenerator::CLI.new(['--list']).execute)
  end

  def test_version_option
    assert_equal(BeakerHostGenerator::Version::STRING,
                 BeakerHostGenerator::CLI.new(['--version']).execute)
  end
end