File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
spec/octocatalog-diff/integration Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 160
160
expect ( result [ :exitcode ] ) . to eq ( 2 ) , OctocatalogDiff ::Integration . format_exception ( result )
161
161
expect ( result [ :output ] ) . to match ( /\+ Package\[ ruby1.8-dev\] =>/ )
162
162
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/ )
163
177
end
164
178
165
179
it 'should not display file source and line' do
You can’t perform that action at this time.
0 commit comments