Sha256: 93772c1a38b1856b0a5e3fb1381770aff7030f91094c0fa587f4ccecac93511d
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 Bytes
Contents
require_relative "../test_helper" class HostInfoTest < Minitest::Test include Rack::Test::Methods def app SwissAdmin::HostInfo end def test_it_retruns_hardware_info get '/host_info' assert last_response.ok? assert_match /Memory Total/ , last_response.body end def test_it_retruns_host_name get '/host_info' assert last_response.ok? assert_match /Host Name/ , last_response.body end def test_it_retruns_host_load get '/host_info' assert last_response.ok? assert_match /Load Average/ , last_response.body end def test_it_retruns_hardware_cpus get '/host_info' assert last_response.ok? assert_match /Total CPUS/ , last_response.body end def test_it_retruns_network_ipaddresses get '/host_info' assert last_response.ok? assert_match /IP Address/ , last_response.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swiss_admin-0.7.0 | test/web/test_host_info.rb |