Sha256: 6b557c91cb2f1e2273d6ada6b53b6ec15e71f26299e3c08e4b25db5accd06bc4
Contents?: true
Size: 410 Bytes
Versions: 4
Compression:
Stored size: 410 Bytes
Contents
require 'test_helper' class TreeNodeTest < ActiveSupport::TestCase context "initialization" do setup do end should "return true for #root? without parent" do assert MouseWidget.new(nil, :mum).root? end should "return false for #root? with parent" do @mum = MouseWidget.new(nil, :mum) assert_not MouseWidget.new(@mum, :kid).root? end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
apotomo-1.2.3 | test/tree_node_test.rb |
apotomo-1.2.2 | test/tree_node_test.rb |
apotomo-1.2.1 | test/tree_node_test.rb |
apotomo-1.2.0 | test/tree_node_test.rb |