Sha256: bacea647695fb60651a1e25e8b8bdec358f9196400feed601bb0c7c0bae7b381
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2018-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require './spec/spec_helper' describe ::TreeBranch::Node do let(:node_hash) { fixture('node.yml') } let(:node) { ::TreeBranch::SimpleNode.make(node_hash) } it 'should initialize and equality compare correctly' do expected_data = OpenStruct.new(node_hash[:data]) expected_children = ::TreeBranch::SimpleNode.array(node_hash[:children]) expect(node.data).to eq(expected_data) expect(node.children).to eq(expected_children) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tree_branch-1.1.1 | spec/tree_branch/node_spec.rb |
tree_branch-1.1.0 | spec/tree_branch/node_spec.rb |
tree_branch-1.0.0 | spec/tree_branch/node_spec.rb |