Skip to content

Commit

Permalink
Move all trust/taint/frozen filters into unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 29, 2013
1 parent f55b77e commit f11d804
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/filters/bugs/array.rb
Expand Up @@ -88,7 +88,6 @@
fails "Array#initialize with (size, object=nil) raises an ArgumentError if size is too large"
fails "Array#initialize with (size, object=nil) sets the array to size and fills with the object"
fails "Array#initialize with (array) calls #to_ary to convert the value to an array"
fails "Array#initialize raises a RuntimeError on frozen arrays"
fails "Array#initialize preserves the object's identity even when changing its value"

fails "Array#insert tries to convert the passed position argument to an Integer using #to_int"
Expand Down Expand Up @@ -130,12 +129,6 @@
fails "Array#* raises a TypeError if the argument can neither be converted to a string nor an integer"
fails "Array#* tires to convert the passed argument to an Integer using #to_int"
fails "Array#* tries to convert the passed argument to a String using #to_str"
fails "Array#* with a string with an untrusted separator untrusts the result if the array has two or more elements"
fails "Array#* with a string with an untrusted separator does not untrust the result if the array has only one element"
fails "Array#* with a string with an untrusted separator does not untrust the result if the array is empty"
fails "Array#* with a string with a tainted separator taints the result if the array has two or more elements"
fails "Array#* with a string with a tainted separator does not taint the result if the array has only one element"
fails "Array#* with a string with a tainted separator does not taint the result if the array is empty"
fails "Array#* with a string uses the same separator with nested arrays"
fails "Array#* with a string returns a string formed by concatenating each element.to_str separated by separator"

Expand Down
1 change: 1 addition & 0 deletions spec/filters/unsupported/frozen.rb
Expand Up @@ -56,6 +56,7 @@
fails "Array#keep_if on frozen objects with truthy block raises a RuntimeError"
fails "Array#keep_if on frozen objects with falsy block keeps elements after any exception"
fails "Array#keep_if on frozen objects with falsy block raises a RuntimeError"
fails "Array#initialize raises a RuntimeError on frozen arrays"

fails "Hash#clear raises a RuntimeError if called on a frozen instance"
end
3 changes: 3 additions & 0 deletions spec/filters/unsupported/tainted.rb
Expand Up @@ -34,6 +34,9 @@
fails "Array#join taints the result if the result of coercing an element is tainted"
fails "Array#join does not taint the result if the Array is tainted but empty"
fails "Array#join taints the result if the Array is tainted and non-empty"
fails "Array#* with a string with a tainted separator taints the result if the array has two or more elements"
fails "Array#* with a string with a tainted separator does not taint the result if the array has only one element"
fails "Array#* with a string with a tainted separator does not taint the result if the array is empty"

fails "Kernel#to_s returns a tainted result if self is tainted"

Expand Down
3 changes: 3 additions & 0 deletions spec/filters/unsupported/trusted.rb
Expand Up @@ -33,6 +33,9 @@
fails "Array#join untrusts the result if the result of coercing an element is untrusted"
fails "Array#join does not untrust the result if the Array is untrusted but empty"
fails "Array#join untrusts the result if the Array is untrusted and non-empty"
fails "Array#* with a string with an untrusted separator untrusts the result if the array has two or more elements"
fails "Array#* with a string with an untrusted separator does not untrust the result if the array has only one element"
fails "Array#* with a string with an untrusted separator does not untrust the result if the array is empty"

fails "Kernel#to_s returns an untrusted result if self is untrusted"
end

0 comments on commit f11d804

Please sign in to comment.