Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

rspec-spies code uses "send", instead of __send__ that leads to name collision #25

Closed
idrozd opened this issue May 31, 2013 · 1 comment
Assignees

Comments

@idrozd
Copy link
Contributor

idrozd commented May 31, 2013

Just stumbled upon this covering legacy code:

    class Bleh
      def send
      ...
      end

      def stuff
      ...
      end
    end 

    describe Bleh do
      it 'bleh`s' do
        bleh = Bleh.new
        bleh.stub :stuff
        bleh.stuff
        bleh.should have_received(:stuff) # Can`t dup nil
      end
    end
@ghost ghost assigned moses May 31, 2013
@moses
Copy link
Collaborator

moses commented May 31, 2013

Fixed

@moses moses closed this as completed May 31, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants