Fix tests

This commit is contained in:
Andre Nathan 2013-12-06 14:59:20 -02:00
parent 4fc49d6526
commit afb05f0ac9

View file

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