File tree Expand file tree Collapse file tree
spec/octocatalog-diff/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 diff = diffs . first
2323 expect ( diff [ 1 ..3 ] ) . to eq ( [ "File\f /tmp/foo\f parameters\f ensure" , nil , 'absent' ] )
2424 end
25-
26- it 'should print the proper debug log messages' do
27- expect ( @result [ :logs ] ) . to match ( /Entering filter_diffs_for_absent_files with 4 diffs/ )
28- expect ( @result [ :logs ] ) . to match ( %r{Removing file=/tmp/foo parameter=group for absent file} )
29- expect ( @result [ :logs ] ) . to match ( %r{Removing file=/tmp/foo parameter=owner for absent file} )
30- expect ( @result [ :logs ] ) . to match ( %r{Removing file=/tmp/foo parameter=mode for absent file} )
31- expect ( @result [ :logs ] ) . to match ( /Exiting filter_diffs_for_absent_files with 1 diffs/ )
32- end
3325 end
3426
3527 context 'with file absent suppression disabled' do
5446 expect ( diffs [ 2 ] [ 1 ..3 ] ) . to eq ( [ "File\f /tmp/foo\f parameters\f owner" , 'root' , 'git' ] )
5547 expect ( diffs [ 3 ] [ 1 ..3 ] ) . to eq ( [ "File\f /tmp/foo\f parameters\f ensure" , nil , 'absent' ] )
5648 end
57-
58- it 'should print the proper debug log messages' do
59- expect ( @result [ :logs ] ) . not_to match ( /Entering filter_diffs_for_absent_files/ )
60- end
6149 end
6250end
You can’t perform that action at this time.
0 commit comments