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
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