From 2fdddcee6fbc9f588285d8e5670303ffb533f170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 23 May 2014 11:45:28 -0300 Subject: 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. --- activesupport/test/subscriber_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/test/subscriber_test.rb') diff --git a/activesupport/test/subscriber_test.rb b/activesupport/test/subscriber_test.rb index 8be8c51f07..21e4ba0cee 100644 --- a/activesupport/test/subscriber_test.rb +++ b/activesupport/test/subscriber_test.rb @@ -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 -- cgit v1.2.3