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 8006511 commit 5b903c9Copy full SHA for 5b903c9
spec/completely/commands/install_spec.rb
@@ -1,6 +1,7 @@
1
describe Commands::Install do
2
subject { described_class.new }
3
4
+ let(:leeway) { RUBY_VERSION < "3.2.0" ? 0 : 3 }
5
let :mock_installer do
6
instance_double Installer,
7
install: true,
@@ -11,7 +12,7 @@
11
12
context 'with --help' do
13
it 'shows long usage' do
14
expect { subject.execute %w[install --help] }
- .to output_approval('cli/install/help').diff(10)
15
+ .to output_approval('cli/install/help')
16
end
17
18
@@ -48,7 +49,7 @@
48
49
allow(mock_installer).to receive(:install).and_return false
50
51
expect { subject.execute %w[install completely-test] }
- .to raise_approval('cli/install/install-error')
52
+ .to raise_approval('cli/install/install-error').diff(leeway)
53
54
55
0 commit comments