Skip to content

Commit 8006511

Browse files
committed
fix ci approval leeway
1 parent bc55dde commit 8006511

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/completely/installer_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
describe Installer do
22
subject { described_class.new program: program, script_path: script_path }
33

4+
let(:leeway) { RUBY_VERSION < "3.2.0" ? 0 : 3 }
45
let(:program) { 'completely-test' }
56
let(:script_path) { 'completions.bash' }
67
let(:expected_command) do
@@ -57,6 +58,7 @@
5758
allow(subject).to receive(:completions_path).and_return nil
5859

5960
expect { subject.install }.to raise_approval('installer/install-no-dir')
61+
.diff(leeway)
6062
end
6163
end
6264

@@ -65,6 +67,7 @@
6567
allow(subject).to receive(:script_path).and_return missing_file
6668

6769
expect { subject.install }.to raise_approval('installer/install-no-script')
70+
.diff(leeway)
6871
end
6972
end
7073

@@ -73,6 +76,7 @@
7376
allow(subject).to receive(:target_path).and_return existing_file
7477

7578
expect { subject.install }.to raise_approval('installer/install-target-exists')
79+
.diff(leeway)
7680
end
7781
end
7882

0 commit comments

Comments
 (0)