Skip to content

Commit ac276fb

Browse files
committed
add raise_approval leeway for ruby 3.2
1 parent 4b6e3d5 commit ac276fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/completely/commands/install_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
context 'when the default script is not found' do
2222
it 'raises an error' do
2323
expect { subject.execute %w[install completely-test] }
24-
.to raise_approval('cli/install/missing-script')
24+
.to raise_approval('cli/install/missing-script').diff(8)
2525
end
2626
end
2727

@@ -78,15 +78,15 @@
7878
it 'raises an error' do
7979
allow(subject).to receive(:completions_path).and_return nil
8080
expect { subject.execute %w[install completely-test README.md] }
81-
.to raise_approval('cli/install/no-completion-targets')
81+
.to raise_approval('cli/install/no-completion-targets').diff(8)
8282
end
8383
end
8484

8585
context 'when the target file exists' do
8686
it 'raises an error' do
8787
allow(subject).to receive(:target_exist?).and_return true
8888
expect { subject.execute %w[install completely-test README.md] }
89-
.to raise_approval('cli/install/target-exists')
89+
.to raise_approval('cli/install/target-exists').diff(8)
9090
end
9191
end
9292
end

0 commit comments

Comments
 (0)