Skip to content
Permalink
Browse files

Merge pull request #691 from jstepien/untag-more-specs

Untag passing specs
  • Loading branch information
alex committed May 8, 2013
2 parents 738e759 + 509488f commit a91e4a6d954d43974bdf800d18959c10c83f59f3
@@ -1,6 +1,3 @@
fails:Array#* with an integer copies the taint status of the original array even if the passed count is 0
fails:Array#* with an integer copies the untrusted status of the original array even if the passed count is 0
fails:Array#* with an integer with a subclass of Array returns a subclass instance
fails:Array#* with a string returns a string formed by concatenating each element.to_str separated by separator
fails:Array#* with a string uses the same separator with nested arrays
fails:Array#* with a string with a tainted separator taints the result if the array has two or more elements
@@ -1,2 +1,2 @@
fails:Class.inherited is invoked with the child Class when self is subclassed
fails:Class.inherited
fails:Class.inherited is called by super from a method provided by an included module
fails:Class.inherited is called by super even when marked as a private class method
@@ -1,3 +1,2 @@
fails:Dir.chdir prefers #to_path over #to_str
fails:Dir.chdir raises an Errno::ENOENT if the directory does not exist
fails:Dir.chdir raises an Errno::ENOENT if the original directory no longer exists
@@ -4,5 +4,4 @@ fails:Exception is a superclass of SignalException
fails:Exception is a superclass of Interrupt
fails:Exception is a superclass of SecurityError
fails:Exception is a superclass of EncodingError
fails:Exception#exception returns self when passed self as an argument
fails:Exception#exception returns an exception of the same class as self with the message given as argument, but without reinitializing
@@ -1,2 +1 @@
fails:File#reopen resets the stream to a new file path
fails:File#reopen accepts an object that has a #to_path method
@@ -1,4 +1,2 @@
fails:Fixnum#divmod returns an Array containing quotient and modulus obtained from dividing self by the given argument
fails:Fixnum#divmod raises a ZeroDivisionError when the given argument is 0
fails:Fixnum#divmod raises a ZeroDivisionError when the given argument is 0 and a Float
fails:Fixnum#divmod raises a TypeError when given a non-Integer
@@ -1,2 +1 @@
fails:Hash#each_pair properly expands (or not) child class's 'each'-yielded args
fails:Hash#each_pair yields the key only to a block expecting |key,|
@@ -1,2 +1 @@
fails:Hash#each properly expands (or not) child class's 'each'-yielded args
fails:Hash#each yields the key only to a block expecting |key,|
@@ -1,4 +1,3 @@
fails:Hash includes Enumerable
fails:Hash#hash returns a value which doesn't depend on the hash order
fails:Hash#hash returns the same hash for recursive hashes
fails:Hash#hash returns the same hash for recursive hashes through arrays
@@ -1,9 +1,7 @@
fails:Integer#chr without argument raises a RangeError is self is less than 0
fails:Integer#chr without argument when Encoding.default_internal is nil raises a RangeError is self is greater than 255
fails:Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a US-ASCII String
fails:Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepoint
fails:Integer#chr without argument when Encoding.default_internal is nil and self is between 128 and 255 (inclusive) returns an ASCII-8BIT String
fails:Integer#chr without argument when Encoding.default_internal is nil and self is between 128 and 255 (inclusive) returns a String containing self interpreted as a byte
fails:Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a US-ASCII String
fails:Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepoint
fails:Integer#chr without argument when Encoding.default_internal is not nil and self is between 128 and 255 (inclusive) returns an ASCII-8BIT String
@@ -1,2 +1 @@
fails:Kernel#equal? returns true if obj and anObject have the same value.
fails:Kernel#equal? is unaffected by overriding __id__
@@ -1,3 +1,2 @@
fails:Kernel#method returns a method object if we repond_to_missing? method
fails:Kernel#method changes the method called for super on a target aliased method
fails:Kernel#method can be called even if we only repond_to_missing? method, true
@@ -1,5 +1,2 @@
fails:Kernel.srand is a private method
fails:Kernel.srand accepts a Bignum as a seed
fails:Kernel.srand calls #to_int on seed
fails:Kernel.srand raises a TypeError when passed nil
fails:Kernel.srand raises a TypeError when passed a String
@@ -1,7 +1,6 @@
fails:passed { |a, b = 1| } creates a method that raises an ArgumentError when passed zero arguments
fails:passed { |a, b = 1| } creates a method that raises an ArgumentError when passed three arguments
fails:Module#define_method when given an UnboundMethod adds the new method to the methods list
fails:Module#define_method calls #method_added after the method is added to the Module
fails:Module#define_method raises a TypeError when the given method is no Method/Proc
fails:Module#define_method raises a RuntimeError if frozen
fails:Module#define_method is private
@@ -1,7 +1,4 @@
fails:Proc#lambda? is preserved when passing a Proc with & to the lambda keyword
fails:Proc#lambda? is preserved when passing a Proc with & to the proc keyword
fails:Proc#lambda? is preserved when passing a Proc with & to Proc.new
fails:Proc#lambda? is preserved when the Proc was passed using &
fails:Proc#lambda? returns true for a Method converted to a Proc
fails:Proc#lambda? is preserved when a Proc is curried
fails:Proc#lambda? is preserved when a curried Proc is called without enough arguments
@@ -1,4 +1,3 @@
fails:Random#bytes returns an ASCII-8BIT String
fails:Random#bytes returns the same numeric output for a given seed accross all implementations and platforms
fails:Random#bytes returns the same numeric output for a given huge seed accross all implementations and platforms
fails:Random#bytes returns a random binary String
@@ -2,5 +2,4 @@ fails:Random#rand with Bignum typically returns a Bignum
fails:Random#rand with Bignum returns a Bignum greater than or equal to 0
fails:Random#rand with Bignum returns a Bignum less than the argument
fails:Random#rand with Bignum returns the same sequence for a given seed
fails:Random#rand with Bignum raises an ArgumentError when the argument is negative
fails:Random#rand with Range raises an ArgumentError when the endpoint lacks #+ and #- methods
@@ -1,4 +1,3 @@
fails:Range#max given a block calls #> and #< on the return value of the block
fails:Range#max returns the endpoint when the endpoint equals the start point and the range is inclusive
fails:Range#max returns end point when the range is Time..Time(included end point)
fails:Range#max raises TypeError when called on a Time...Time(excluded end point)
@@ -1,4 +1,3 @@
fails:Range#min given a block calls #> and #< on the return value of the block
fails:Range#min returns the start point when the endpoint equals the start point and the range is inclusive
fails:Range#min returns start point when the range is Time..Time(included end point)
fails:Range#min returns start point when the range is Time...Time(excluded end point)
@@ -1,4 +1,3 @@
fails:String#getbyte returns an Integer between 0 and 255
fails:String#getbyte regards a multi-byte character as having multiple bytes
fails:String#getbyte mirrors the output of #bytes
fails:String#getbyte interprets bytes relative to the String's encoding
@@ -3,7 +3,6 @@ fails:String#inspect untrusts the result if self is untrusted
fails:String#inspect returns a string with special characters replaced with \<char> notation
fails:String#inspect returns a string with " and \ escaped with a backslash
fails:String#inspect returns a string with \#<char> when # is followed by $, @, {
fails:String#inspect returns a string with # not escaped when followed by any other character
fails:String#inspect returns a string with non-printing characters replaced by \x notation
fails:String#inspect returns a string with a NUL character replaced by \x notation
fails:String#inspect when default external is UTF-8 returns a string with non-printing characters replaced by \u notation for Unicode strings
@@ -1,4 +1,3 @@
fails:A class definition raises a TypeError if inheriting from a metaclass
fails:A class definition allows the declaration of class variables in the body
fails:A class definition extending an object (sclass) can use return to cause the enclosing method to return
fails:Reopening a class raises a TypeError when superclasses mismatch
@@ -1,2 +1 @@
fails:The for expression iterates over an Hash passing each key-value pair to the block
fails:The for expression repeats current iteration with 'redo'
@@ -1,5 +1,3 @@
fails:A Symbol literal is a ':' followed by a single- or double-quoted string that may contain otherwise invalid characters
fails:A Symbol literal can be created by the %s-delimited expression
fails:A Symbol literal can contain null in the string
fails:A Symbol literal can be an empty string
fails:A Symbol literal is converted to a literal, unquoted representation if the symbol contains only valid characters

0 comments on commit a91e4a6

Please sign in to comment.
You can’t perform that action at this time.