Skip to content

Commit 68b0591

Browse files
committed
fix ci
1 parent 373c2b5 commit 68b0591

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/bashly/commands/render_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
describe 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

@@ -21,7 +22,7 @@
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

@@ -47,7 +48,7 @@
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

0 commit comments

Comments
 (0)