Skip to content

Commit a667869

Browse files
committed
test: more exact test for patch file presence
to better handle releases without patches
1 parent 0db909d commit a667869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/test-gem-file-contents

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe File.basename(gemfile) do
123123
end
124124

125125
it "contains the patch files" do
126-
assert_operator(gemfile_contents.grep(%r{^patches/}).length, :>, 0)
126+
assert_equal(Dir.glob("patches/*.patch").length, gemfile_contents.count { |f| File.fnmatch?("patches/*", f) })
127127
end
128128

129129
it "sets metadata for msys2" do

0 commit comments

Comments
 (0)