Skip to content

Commit 2c5e35f

Browse files
committed
(FACT-3154) Skip YAML parser date spec on Ruby 3.2
There is a bug in timecop in how it interacts with newer versions of Psych that causes our YAML parser date spec to fail. This commit sets this test as pending until we can find a long- term resolution. travisjeffery/timecop#390
1 parent 2491788 commit 2c5e35f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/custom_facts/util/parser_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ def expects_to_parse_powershell(cmd, result)
354354
let(:yaml_content) { load_fixture('external_fact_yaml_date').read }
355355

356356
it 'loads date' do
357+
pending 'There is a bug in newer versions of Psych and Timecop' if RUBY_VERSION =~ /^3\.2/
357358
expected_result = { 'testsfact' => { 'date' => Date.parse('2020-04-28') } }
358359

359360
expect(yaml_parser.parse_results).to eq(expected_result)

0 commit comments

Comments
 (0)