From 52804f52e9301aa19532a1d193a0d165cd473e32 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Wed, 9 Oct 2024 12:52:11 -0700 Subject: [PATCH] Skip filename checking on Windows. --- spec/metadata_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/metadata_spec.rb b/spec/metadata_spec.rb index 65b8924..570b887 100644 --- a/spec/metadata_spec.rb +++ b/spec/metadata_spec.rb @@ -753,7 +753,9 @@ context filename do subject {RDF::Tabular::Metadata.open(filename, logger: logger)} it {is_expected.to be_valid} - its(:filenames) {is_expected.to include("file:/#{filename.sub(/^\//, '')}")} + its(:filenames, skip: ('not windows' if Gem.win_platform?)) do + is_expected.to include("file:/#{filename.sub(/^\//, '')}") + end end after(:each) do expect(logger.to_s).not_to match(/ERROR|WARN/) @@ -818,8 +820,8 @@ subject.validate expect(logger.to_s).to be_empty end - it "has expected filenames" do - expect(Array(subject.filenames).map(&:to_s)).to include("file:/#{filename.sub(/^\//, '')}") + its(:filenames, skip: ('not windows' if Gem.win_platform?)) do + is_expected.to include("file:/#{filename.sub(/^\//, '')}") end end end