diff --git a/test/tc_lxc_undefined.rb b/test/tc_lxc_undefined.rb index eec1ebe..2c49f19 100644 --- a/test/tc_lxc_undefined.rb +++ b/test/tc_lxc_undefined.rb @@ -5,7 +5,7 @@ require 'lxc' class TestLXCUndefined < Test::Unit::TestCase def setup - @name = 'test' + @name = 'test_undefined' @container = LXC::Container.new(@name) end @@ -15,19 +15,18 @@ class TestLXCUndefined < Test::Unit::TestCase end def test_container_not_defined - assert_equal(false, @container.defined?) + assert(!@container.defined?) end def test_container_init_pid - assert_equal(nil, @container.init_pid) + assert_nil(@container.init_pid) end def test_container_not_running - assert_equal(false, @container.running?) + assert(!@container.running?) end def test_container_stopped - assert_equal(false, @container.running?) assert_equal('STOPPED', @container.state) end end