test/test-container.rb in mireru-0.1.4 vs test/test-container.rb in mireru-0.1.5

- old
+ new

@@ -3,9 +3,18 @@ class ContainerTest < Test::Unit::TestCase def setup @container = Mireru::Container.new end + def test_size + assert_equal(0, @container.size) + files = @container.instance_variable_get(:@files) + files << __FILE__ + assert_equal(1, @container.size) + files << __FILE__ + assert_equal(2, @container.size) + end + def test_no_argument valid = @container.__send__(:file?, nil) assert_false(valid) end