Skip to content

Commit ceb1244

Browse files
author
Kevin Paulisse
committed
Add integration test for no-truncate-details
1 parent 8477f1b commit ceb1244

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/octocatalog-diff/integration/outputs_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@
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

0 commit comments

Comments
 (0)