Skip to content

Commit

Permalink
add raise_approval leeway for ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Apr 18, 2023
1 parent 4b6e3d5 commit ac276fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/completely/commands/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
context 'when the default script is not found' do
it 'raises an error' do
expect { subject.execute %w[install completely-test] }
.to raise_approval('cli/install/missing-script')
.to raise_approval('cli/install/missing-script').diff(8)
end
end

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

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

0 comments on commit ac276fb

Please sign in to comment.