Skip to content

Commit 5b903c9

Browse files
committed
fix ci approval leeway
1 parent 8006511 commit 5b903c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/completely/commands/install_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
describe Commands::Install do
22
subject { described_class.new }
33

4+
let(:leeway) { RUBY_VERSION < "3.2.0" ? 0 : 3 }
45
let :mock_installer do
56
instance_double Installer,
67
install: true,
@@ -11,7 +12,7 @@
1112
context 'with --help' do
1213
it 'shows long usage' do
1314
expect { subject.execute %w[install --help] }
14-
.to output_approval('cli/install/help').diff(10)
15+
.to output_approval('cli/install/help')
1516
end
1617
end
1718

@@ -48,7 +49,7 @@
4849
allow(mock_installer).to receive(:install).and_return false
4950

5051
expect { subject.execute %w[install completely-test] }
51-
.to raise_approval('cli/install/install-error')
52+
.to raise_approval('cli/install/install-error').diff(leeway)
5253
end
5354
end
5455
end

0 commit comments

Comments
 (0)