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

- old
+ new

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