Skip to content

Commit

Permalink
Use def specs from rubyspec
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 26, 2013
1 parent bed49d2 commit b29b38f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 553 deletions.
4 changes: 4 additions & 0 deletions corelib/module.rb
Expand Up @@ -369,6 +369,10 @@ def public(*)

alias public_method_defined? method_defined?

def remove_class_variable(*)

end

def remove_const(name)
%x{
var old = #{self}._scope[name];
Expand Down
4 changes: 2 additions & 2 deletions spec/filters/bugs/language.rb
Expand Up @@ -112,8 +112,8 @@
fails "A singleton method defined with extreme default arguments may use a method definition as a default"
fails "A method defined with extreme default arguments may use an fcall as a default"
fails "A method defined with extreme default arguments can redefine itself when the default is evaluated"
fails "Redefining a singleton method does not inherit a previously set visibility"
fails "Redefining a singleton method does not inherit a previously set visibility"
fails "Redefining a singleton method does not inherit a previously set visibility "
fails "Redefining a singleton method does not inherit a previously set visibility "
fails "A singleton method definition raises RuntimeError if frozen"
fails "A singleton method definition can be declared for a class variable"
fails "A singleton method definition can be declared for a global variable"
Expand Down

0 comments on commit b29b38f

Please sign in to comment.