We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781da70 commit a66f3e3Copy full SHA for a66f3e3
spec/approvals/cli/install/install-error
@@ -0,0 +1,2 @@
1
+#<RuntimeError: Failed running command:
2
+nb`sudo cp source target`>
spec/completely/commands/install_spec.rb
@@ -41,4 +41,15 @@
41
.to output_approval('cli/install/dry')
42
end
43
44
+
45
+ context 'when the installer fails' do
46
+ it 'raises an error' do
47
+ allow(subject).to receive(:installer).and_return(mock_installer)
48
49
+ expect(mock_installer).to receive(:install).and_return false
50
51
+ expect { subject.execute %w[install completely-test] }
52
+ .to raise_approval('cli/install/install-error')
53
+ end
54
55
0 commit comments