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 160160 expect ( result [ :exitcode ] ) . to eq ( 2 ) , OctocatalogDiff ::Integration . format_exception ( result )
161161 expect ( result [ :output ] ) . to match ( /\+ Package\[ ruby1.8-dev\] =>/ )
162162 expect ( result [ :output ] ) . to match ( /"new-parameter": "new value"/ )
163+ expect ( result [ :output ] ) . to match ( /THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY LOCAL CH\. \. \. / )
164+ end
165+
166+ it 'should display detail without truncation' do
167+ argv = [
168+ '--from-catalog' , OctocatalogDiff ::Spec . fixture_path ( 'catalogs/catalog-empty.json' ) ,
169+ '--to-catalog' , OctocatalogDiff ::Spec . fixture_path ( 'catalogs/catalog-2.json' ) ,
170+ '--display-detail-add' , '--no-color' , '--no-truncate-details'
171+ ]
172+ result = OctocatalogDiff ::Integration . integration ( argv : argv )
173+ expect ( result [ :exitcode ] ) . to eq ( 2 ) , OctocatalogDiff ::Integration . format_exception ( result )
174+ expect ( result [ :output ] ) . to match ( /\+ Package\[ ruby1.8-dev\] =>/ )
175+ expect ( result [ :output ] ) . to match ( /"new-parameter": "new value"/ )
176+ expect ( result [ :output ] ) . to match ( /THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY LOCAL CHANGES/ )
163177 end
164178
165179 it 'should not display file source and line' do
You can’t perform that action at this time.
0 commit comments