spec/lib/formats/plain_spec.rb in hieracles-0.1.6 vs spec/lib/formats/plain_spec.rb in hieracles-0.1.7

- old
+ new

@@ -41,11 +41,11 @@ expect(plain_format.paths nil).to eq expected end end describe ".build_head" do - let(:expected) { "[0] path1\n[1] path2\n\n" } + let(:expected) { "[-] (merged)\n[0] path1\n[1] path2\n\n" } before { allow(node).to receive(:files).and_return(['path1', 'path2']) } it "outputs proper text" do expect(plain_format.send :build_head, true).to eq expected @@ -57,11 +57,11 @@ "[1] params.this.var value2\n"+ " [0] params.this.var value1\n" } let(:params) { [ - { file: 'path1', value: 'value1'}, - { file: 'path2', value: 'value2'}, + { file: 'path1', value: 'value1', merged: 'value1'}, + { file: 'path2', value: 'value2', merged: 'value2'}, ] } before { plain_format.instance_variable_set(:@index, {'path1' => 0, 'path2' => 1}