Skip to content

Commit

Permalink
Removes usages of ConstantStubber in favor of ConstantMutator
Browse files Browse the repository at this point in the history
  • Loading branch information
alindeman committed Oct 20, 2012
1 parent 72f73a3 commit 545c2f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/mocks/example_methods.rb
Expand Up @@ -79,7 +79,7 @@ def allow_message_expectations_on_nil
# CardDeck::SUITS # => our suits array
# CardDeck::NUM_CARDS # => uninitialized constant error
def stub_const(constant_name, value, options = {})
ConstantStubber.stub(constant_name, value, options)
ConstantMutator.stub(constant_name, value, options)
end

# Hides the named constant with the given value. The constant will be
Expand All @@ -95,7 +95,7 @@ def stub_const(constant_name, value, options = {})
#
# hide_const("MyClass") # => MyClass is now an undefined constant
def hide_const(constant_name)
ConstantStubber.hide(constant_name)
ConstantMutator.hide(constant_name)
end

private
Expand Down

0 comments on commit 545c2f0

Please sign in to comment.