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

Version Path
arborist-0.2.0.pre20170519125456 spec/arborist/node/root_spec.rb
arborist-0.1.0 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20161005182540 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20161005112841 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20160829140603 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20160606141735 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20160128152542 spec/arborist/node/root_spec.rb
arborist-0.0.1.pre20160106113421 spec/arborist/node/root_spec.rb