Skip to content

Commit

Permalink
Fix Module#ancestors to also include modules in hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 23, 2013
1 parent ba205fb commit 9de733f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions corelib/module.rb
Expand Up @@ -54,6 +54,11 @@ def ancestors
while (parent) {
result.push(parent);
if (parent.$included_modules) {
result = result.concat(parent.$included_modules)
}
parent = parent._super;
}
Expand Down
1 change: 0 additions & 1 deletion spec/filters/bugs/array.rb
@@ -1,5 +1,4 @@
opal_filter "Array" do
fails "Array includes Enumerable"
fails "Array#at raises a TypeError when the passed argument can't be coerced to Integer"

fails "Array#clone copies singleton methods"
Expand Down

0 comments on commit 9de733f

Please sign in to comment.