Skip to content

Commit 52804f5

Browse files
committed
Skip filename checking on Windows.
1 parent 6710cd5 commit 52804f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/metadata_spec.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,9 @@
753753
context filename do
754754
subject {RDF::Tabular::Metadata.open(filename, logger: logger)}
755755
it {is_expected.to be_valid}
756-
its(:filenames) {is_expected.to include("file:/#{filename.sub(/^\//, '')}")}
756+
its(:filenames, skip: ('not windows' if Gem.win_platform?)) do
757+
is_expected.to include("file:/#{filename.sub(/^\//, '')}")
758+
end
757759
end
758760
after(:each) do
759761
expect(logger.to_s).not_to match(/ERROR|WARN/)
@@ -818,8 +820,8 @@
818820
subject.validate
819821
expect(logger.to_s).to be_empty
820822
end
821-
it "has expected filenames" do
822-
expect(Array(subject.filenames).map(&:to_s)).to include("file:/#{filename.sub(/^\//, '')}")
823+
its(:filenames, skip: ('not windows' if Gem.win_platform?)) do
824+
is_expected.to include("file:/#{filename.sub(/^\//, '')}")
823825
end
824826
end
825827
end

0 commit comments

Comments
 (0)