Sha256: 5b4f8868f4213ab72bd6820d16b1056c90cd6de3e651389c2fb0479243530242
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
require_relative "../test_helper" class CLIHostTest < MiniTest::Test def setup @host = Socket.gethostname end def test_cli_host_name_returns_host_name assert_output("#{@host}\n") { SwissAdmin::CLI.start %w{ host name } } end def test_cli_host_loadavg_returns_system_load assert_output(/[\d\.]+\W+[\d\.]+\W+[\d\.]+\W+[\d\/]+\W+\d+/) { SwissAdmin::CLI.start %w{ host loadavg } } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swiss_admin-0.7.0 | test/cli/cli_host_test.rb |
swiss_admin-0.6.1 | test/cli/cli_host_test.rb |