Skip to content

Commit 4a90acb

Browse files
authoredNov 1, 2019
Merge pull request #329 from jeremyevans/skip-taint-test-on-2.7
Skip a taint test on Ruby 2.7
2 parents a08b697 + 4dc6282 commit 4a90acb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎test/test_rake_file_list.rb

+9-7
Original file line numberDiff line numberDiff line change
@@ -496,13 +496,15 @@ def test_clone_and_dup
496496
assert_equal ["a", "b", "c"], d
497497
end
498498

499-
def test_dup_and_clone_replicate_taint
500-
a = FileList["a", "b", "c"]
501-
a.taint
502-
c = a.clone
503-
d = a.dup
504-
assert c.tainted?, "Clone should be tainted"
505-
assert d.tainted?, "Dup should be tainted"
499+
if RUBY_VERSION < '2.7'
500+
def test_dup_and_clone_replicate_taint
501+
a = FileList["a", "b", "c"]
502+
a.taint
503+
c = a.clone
504+
d = a.dup
505+
assert c.tainted?, "Clone should be tainted"
506+
assert d.tainted?, "Dup should be tainted"
507+
end
506508
end
507509

508510
def test_duped_items_will_thaw

0 commit comments

Comments
 (0)