File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
9292end
You can’t perform that action at this time.
0 commit comments