test/test_sourcehandler_memory.rb in gettalong-webgen-0.5.7.20090227 vs test/test_sourcehandler_memory.rb in gettalong-webgen-0.5.8.20090507
- old
+ new
@@ -17,28 +17,28 @@
root.unflag(:created)
node = obj.create_node(root, path_with_meta_info('/test.png'), '/', 'data')
assert_equal('/', node.node_info[:memory_source_alcn])
assert_equal('data', obj.content(node))
- assert(!node.flagged(:reinit))
+ assert(!node.flagged?(:reinit))
root.tree.delete_node(node)
node = obj.create_node(root, path_with_meta_info('/test.png'), '/') {|n| assert_equal(node, n); 'data'}
assert_equal('/', node.node_info[:memory_source_alcn])
assert_equal('data', obj.content(node))
- assert(!node.flagged(:reinit))
+ assert(!node.flagged?(:reinit))
- assert(!root.flagged(:dirty))
+ assert(!root.flagged?(:dirty))
node.flag(:reinit)
- assert(root.flagged(:dirty))
+ assert(root.flagged?(:dirty))
root.unflag(:dirty)
root.tree.delete_node(node)
node = obj.create_node(root, path_with_meta_info('/test.png'), '/', 'data')
assert_equal('/', node.node_info[:memory_source_alcn])
obj.instance_eval { @data = nil }
assert_nil(obj.content(node))
- assert(node.flagged(:reinit))
- assert(root.flagged(:dirty))
+ assert(node.flagged?(:reinit))
+ assert(root.flagged?(:dirty))
end
end