# NOTE: run bin/format-filters after changing this file opal_filter "UnboundMethod" do fails "UnboundMethod#== considers methods through aliasing and visibility change equal" # Expected #:40)> == # in :40)> to be truthy but was false fails "UnboundMethod#== considers methods through aliasing equal" # Expected #:40)> == # in :40)> to be truthy but was false fails "UnboundMethod#== considers methods through visibility change equal" # Expected #:40)> == #:40)> to be truthy but was false fails "UnboundMethod#== returns false if same method but extracted from two different subclasses" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if both are aliases for a third method" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if either is an alias for the other" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if methods are the same but added from an included Module" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if objects refer to the same method" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if same method but one extracted from a subclass" # Expected false == true to be truthy but was false fails "UnboundMethod#== returns true if same method is extracted from the same subclass" # Expected false == true to be truthy but was false fails "UnboundMethod#arity for a Method generated by respond_to_missing? returns -1" # Mock 'method arity respond_to_missing' expected to receive respond_to_missing?("any_args") exactly 1 times but received it 0 times fails "UnboundMethod#bind the returned Method is equal to the one directly returned by obj.method" # Expected # == # to be truthy but was false fails "UnboundMethod#clone returns a copy of the UnboundMethod" # Expected false == true to be truthy but was false fails "UnboundMethod#hash equals a hash of the same method in the superclass" # Expected 13816 == 13814 to be truthy but was false fails "UnboundMethod#hash returns the same value for builtin methods that are eql?" # Expected 13858 == 13860 to be truthy but was false fails "UnboundMethod#hash returns the same value for user methods that are eql?" # Expected 13902 == 13904 to be truthy but was false fails "UnboundMethod#inspect returns a String including all details" # Expected "#".start_with? "#:1685)> fails "UnboundMethod#original_name returns the original name even when aliased twice" # NoMethodError: undefined method `original_name' for # fails "UnboundMethod#original_name returns the original name" # NoMethodError: undefined method `original_name' for # fails "UnboundMethod#source_location sets the first value to the path of the file in which the method was defined" # Expected "ruby/core/unboundmethod/fixtures/classes.rb" == "./ruby/core/unboundmethod/fixtures/classes.rb" to be truthy but was false fails "UnboundMethod#source_location works for eval with a given line" # Expected ["(eval)", 0] == ["foo", 100] to be truthy but was false fails "UnboundMethod#super_method after aliasing an inherited method returns the expected super_method" # NoMethodError: undefined method `super_method' for # fails "UnboundMethod#super_method after changing an inherited methods visibility returns the expected super_method" # NoMethodError: undefined method `super_method' for # fails "UnboundMethod#super_method returns nil when the parent's method is removed" # NoMethodError: undefined method `super_method' for ##foo (defined in # in ruby/core/unboundmethod/super_method_spec.rb:21)> fails "UnboundMethod#super_method returns nil when there's no super method in the parent" # NoMethodError: undefined method `super_method' for #:32)> fails "UnboundMethod#super_method returns the method that would be called by super in the method" # NoMethodError: undefined method `super_method' for # fails "UnboundMethod#to_s does not show the defining module if it is the same as the origin" # Expected "#".start_with? "#".start_with? "#" =~ /\bfrom_mod\b/ to be truthy but was nil end