File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11describe 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
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
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
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
You can’t perform that action at this time.
0 commit comments