From fa261940fc41ffbd6e6f3e006bb057de62459561 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Fri, 20 Jul 2018 08:24:18 +1000 Subject: [PATCH] Fix `mas list` output for installed spec The output that was being asserted against wasn't correct and lead to it failing the validation included in 32b0f47. In order to assert against the actual output, the version number and ID has been added. --- spec/mac_app_store_dumper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mac_app_store_dumper_spec.rb b/spec/mac_app_store_dumper_spec.rb index 9497d9279d..5cd4881622 100644 --- a/spec/mac_app_store_dumper_spec.rb +++ b/spec/mac_app_store_dumper_spec.rb @@ -40,7 +40,7 @@ before do Bundle::MacAppStoreDumper.reset! allow(Bundle).to receive(:mas_installed?).and_return(true) - allow(Bundle::MacAppStoreDumper).to receive(:`).and_return("123 foo\n456 bar\n789 baz") + allow(Bundle::MacAppStoreDumper).to receive(:`).and_return("123 foo (1.0)\n456 bar (2.0)\n789 baz (3.0)") end subject { Bundle::MacAppStoreDumper }