aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/deprecation_test.rb
diff options
context:
space:
mode:
authorMichael Siebert <siebertm85@googlemail.com>2009-06-25 00:59:58 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-08-09 15:54:56 +0100
commitd811864e880580549bc1ab73a1ab0be886598e6e (patch)
tree2f1000eb4dd8e042c9b39f1129b13d8c001def65 /activesupport/test/deprecation_test.rb
parent32bde66aa67a95a532ed68bbc71a0e9cd5dd4ba6 (diff)
downloadrails-d811864e880580549bc1ab73a1ab0be886598e6e.tar.gz
rails-d811864e880580549bc1ab73a1ab0be886598e6e.tar.bz2
rails-d811864e880580549bc1ab73a1ab0be886598e6e.zip
Fix deprecating =-methods by using send [#2431 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/test/deprecation_test.rb')
-rw-r--r--activesupport/test/deprecation_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb
index 73a1f9959c..a3ae39d071 100644
--- a/activesupport/test/deprecation_test.rb
+++ b/activesupport/test/deprecation_test.rb
@@ -25,6 +25,9 @@ class Deprecatee
def e; end
deprecate :a, :b, :c => :e, :d => "you now need to do something extra for this one"
+ def f=(v); end
+ deprecate :f=
+
module B
C = 1
end
@@ -133,6 +136,7 @@ class DeprecationTest < ActiveSupport::TestCase
def test_deprecation_without_explanation
assert_deprecated { @dtc.a }
assert_deprecated { @dtc.b }
+ assert_deprecated { @dtc.f = :foo }
end
def test_deprecation_with_alternate_method