spec: ensure Node usage is tracked

Add missing spec for disable of node payload when collecting the
usage of them in `Result`.
This commit is contained in:
Luis Lavena 2016-01-24 19:21:19 -03:00
parent 7f348cae8c
commit c79f4e5c21

View file

@ -62,6 +62,15 @@ module Radix
result.payload?.should be_truthy
result.payload.should eq(node.payload)
end
it "allow not to assign payload" do
node = Node.new("/", :root)
result = Result.new
result.payload?.should be_falsey
result.use node, payload: false
result.payload?.should be_falsey
end
end
end
end