Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

#any_instance_of is being redefined #73

Closed
wants to merge 1 commit into from

2 participants

@mvz

Silences a method redefined; discarding old any_instance_of warning when using RR or running its specs under Ruby 1.8.7.

@mcmire
Collaborator

Hmm. This is interesting -- #any_instance_of and #new_instance_of are defined as aliases for #instance_of and then later overridden. Need to look into this.

@mcmire
Collaborator

Fixed.

@mcmire mcmire closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 14, 2011
  1. @mvz

    Silence warning under Ruby 1.8.7.

    mvz authored
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/rr/adapters/rr_methods.rb
View
1  lib/rr/adapters/rr_methods.rb
@@ -31,7 +31,6 @@ def instance_of(subject=DoubleDefinitions::DoubleDefinitionCreate::NO_SUBJECT, m
double_definition_create = DoubleDefinitions::DoubleDefinitionCreate.new
double_definition_create.instance_of(subject, method_name, &definition_eval_block)
end
- alias_method :any_instance_of, :instance_of
alias_method :all_instances_of, :instance_of
# Verifies all the DoubleInjection objects have met their
Something went wrong with that request. Please try again.