diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-23 11:45:28 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-23 11:45:28 -0300 |
commit | 2fdddcee6fbc9f588285d8e5670303ffb533f170 (patch) | |
tree | 8e17ba0fb4b644731db7b16f07634571e928847d /activesupport | |
parent | 8b364715010c25ddb28500d5b4a612386c437eb3 (diff) | |
download | rails-2fdddcee6fbc9f588285d8e5670303ffb533f170.tar.gz rails-2fdddcee6fbc9f588285d8e5670303ffb533f170.tar.bz2 rails-2fdddcee6fbc9f588285d8e5670303ffb533f170.zip |
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.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/subscriber_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |