File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11describe Commands ::Render do
22 subject { described_class . new }
33
4- let ( :leeway ) { RUBY_VERSION < '3.2.0' ? 0 : 5 }
4+ let ( :ruby_leeway ) { RUBY_VERSION < '3.2.0' ? 0 : 5 }
5+ let ( :markdown_leeway ) { ENV [ 'CI' ] ? 20 : 0 }
56 let ( :source_dir ) { Settings . source_dir }
67 let ( :target ) { 'spec/tmp' }
78
2122 context 'with --about' do
2223 it 'shows the readme of the template source' do
2324 expect { subject . execute %w[ render :markdown --about ] }
24- . to output_approval ( 'cli/render/about-markdown' ) . diff ( 8 )
25+ . to output_approval ( 'cli/render/about-markdown' ) . diff ( markdown_leeway )
2526 end
2627 end
2728
4748 it 'raises an error' do
4849 expect { subject . execute %W[ render no-templates-4U #{ target } ] }
4950 . to raise_approval ( 'cli/render/source-not-found' )
50- . diff ( leeway )
51+ . diff ( ruby_leeway )
5152 end
5253 end
5354
You can’t perform that action at this time.
0 commit comments