Skip to content

Commit 7f4491e

Browse files
committed
Fix ambiguity warning.
1 parent 5aaa8fc commit 7f4491e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/data_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
it "creates a data from a file" do
2626
# magic fromfile
2727
data = GPGME::Data.new(File.open(__FILE__))
28-
assert_match /magic fromfile/, data.read
28+
assert_match(/magic fromfile/, data.read)
2929
end
3030

3131
it "creates a data from file descriptor" do
3232
# magic filedescriptor
3333
File.open(__FILE__) do |f|
3434
data = GPGME::Data.new(f.fileno)
35-
assert_match /magic filedescriptor/, data.read
35+
assert_match(/magic filedescriptor/, data.read)
3636
end
3737
end
3838
end

0 commit comments

Comments
 (0)