spec/lib/node_spec.rb in hieracles-0.0.6 vs spec/lib/node_spec.rb in hieracles-0.1.0

- old
+ new

@@ -55,22 +55,22 @@ end describe '.files' do let(:expected) { [ - 'nodes/server.example.com.yaml', - 'farm/dev.yaml' + 'params/nodes/server.example.com.yaml', + 'params/farm/dev.yaml' ] } it { expect(node.files).to eq expected } end describe '.paths' do let(:expected) { [ - File.join(node.hiera.datadir, 'nodes/server.example.com.yaml'), - File.join(node.hiera.datadir, 'farm/dev.yaml') + File.join(node.hiera.datapath, 'nodes/server.example.com.yaml'), + File.join(node.hiera.datapath, 'farm/dev.yaml') ] } it { expect(node.paths).to eq expected } end @@ -78,22 +78,22 @@ let(:expected) { [ [ "another.sublevel.thing", [{ value: "always", - file: 'nodes/server.example.com.yaml' + file: 'params/nodes/server.example.com.yaml' }] ], [ "common_param.subparam", [{ value: "overriden", - file: 'nodes/server.example.com.yaml' + file: 'params/nodes/server.example.com.yaml' }] ], [ "somefarmparam", [{ value: false, - file: 'farm/dev.yaml' + file: 'params/farm/dev.yaml' }] ] ] } it { expect(node.params).to eq expected }