Skip to content

Commit

Permalink
Group some more failing specs as due to array subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 22, 2013
1 parent 049225a commit e56cb75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/filters/bugs/array.rb
Expand Up @@ -255,6 +255,12 @@
fails "Array#uniq! compares elements based on the value returned from the block"
fails "Array#uniq! properly handles recursive arrays"

fails "Array#values_at returns an array of elements at the indexes when passed indexes"
fails "Array#values_at calls to_int on its indices"
fails "Array#values_at returns an array of elements in the ranges when passes ranges"
fails "Array#values_at properly handles recursive arrays"
fails "Array#values_at calls to_int on arguments of ranges when passes ranges"

fails "Array#zip calls #to_ary to convert the argument to an Array"
fails "Array#zip uses #each to extract arguments' elements when #to_ary fails"
end
1 change: 1 addition & 0 deletions spec/filters/unsupported/array_subclasses.rb
Expand Up @@ -2,4 +2,5 @@
fails "Array.[] returns a new array populated with the given elements"
fails "Array[] is a synonym for .[]"
fails "Array.new returns an instance of a subclass"
fails "Array#values_at does not return subclass instance on Array subclasses"
end
1 change: 1 addition & 0 deletions spec/rubyspecs
Expand Up @@ -68,6 +68,7 @@ core/array/transpose_spec
core/array/try_convert_spec
core/array/uniq_spec
core/array/unshift_spec
core/array/values_at_spec
core/array/zip_spec
core/true/and_spec
core/true/inspect_spec
Expand Down

0 comments on commit e56cb75

Please sign in to comment.