Sha256: 6a1af45f87e813b1bd011a479e7f1879876ec4c1318ea9599ea0747ddaec1ba4
Contents?: true
Size: 466 Bytes
Versions: 8
Compression:
Stored size: 466 Bytes
Contents
#!/usr/bin/env rspec -cfd require_relative '../../spec_helper' require 'arborist/node/root' describe Arborist::Node::Root do let( :node ) { described_class.instance } it "is a singleton" do expect( described_class.new ).to be( described_class.new ) end it "doesn't have a parent node" do expect( node.parent ).to be_nil end it "doesn't allow a parent to be set on it" do node.parent( 'supernode' ) expect( node.parent ).to be_nil end end
Version data entries
8 entries across 8 versions & 1 rubygems