Remove warning remeving the method before redefining

We need to test if the same method defined more than once only register
one subscriber for it. We can safelly remove because the method body is
the same and Subscriber use method_added hook for register the
subscriber.
This commit is contained in:
Rafael Mendonça França 2014-05-23 11:45:28 -03:00
parent 8b36471501
commit 2fdddcee6f
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ end
# Monkey patch subscriber to test that only one subscriber per method is added.
class TestSubscriber
remove_method :open_party
def open_party(event)
events << event
end