Skip to content

Commit

Permalink
Merge pull request #329 from jeremyevans/skip-taint-test-on-2.7
Browse files Browse the repository at this point in the history
Skip a taint test on Ruby 2.7
  • Loading branch information
hsbt authored Nov 1, 2019
2 parents a08b697 + 4dc6282 commit 4a90acb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/test_rake_file_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,15 @@ def test_clone_and_dup
assert_equal ["a", "b", "c"], d
end

def test_dup_and_clone_replicate_taint
a = FileList["a", "b", "c"]
a.taint
c = a.clone
d = a.dup
assert c.tainted?, "Clone should be tainted"
assert d.tainted?, "Dup should be tainted"
if RUBY_VERSION < '2.7'
def test_dup_and_clone_replicate_taint
a = FileList["a", "b", "c"]
a.taint
c = a.clone
d = a.dup
assert c.tainted?, "Clone should be tainted"
assert d.tainted?, "Dup should be tainted"
end
end

def test_duped_items_will_thaw
Expand Down

0 comments on commit 4a90acb

Please # to comment.