Skip to content

Commit e439c84

Browse files
committed
reduce date sensitivity in mandow rendering specs
1 parent b24cddf commit e439c84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/approvals/libraries/render/mandoc/render-1-download.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ EXAMPLES
2929
download example.com ./output -f
3030

3131

32-
Version 0.1.0 MONTH YEAR download(1)
32+
Version 0.1.0 MONTH YEAR ... APPNAME

spec/bashly/libraries/render_mandoc_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
expect(`man "#{target}/download.1" | col -bx`)
3232
.to match_approval('libraries/render/mandoc/render-1-download.1')
3333
.diff(leeway)
34-
.except(/\w{3,9} 202\d/, 'MONTH YEAR')
34+
.except(/\w{3,9} 202\d.*/, 'MONTH YEAR ... APPNAME')
3535
end
3636
end
3737

@@ -41,7 +41,7 @@
4141
it 'saves a markdown and man files for each command' do
4242
expect { subject.instance_eval render_script }
4343
.to output_approval('libraries/render/mandoc/render-2')
44-
.except(/\w{3,9} 202\d/, 'MONTH YEAR')
44+
.except(/\w{3,9} 202\d.*/, 'MONTH YEAR ... APPNAME')
4545

4646
expect(File.read "#{target}/cli-download.md")
4747
.to match_approval('libraries/render/mandoc/render-2-download.md')

0 commit comments

Comments
 (0)