Skip to content

Commit

Permalink
Skip filename checking on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Oct 9, 2024
1 parent 6710cd5 commit 52804f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52804f5

Please sign in to comment.