diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-01 22:38:28 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-01 22:38:28 -0300 |
commit | f62fb985b6a7b90872148f0786219c9cc94c9356 (patch) | |
tree | b8d24927a0d48d4aceca5f6d0fee81b01c9f4a6f /activesupport/test/core_ext | |
parent | 1c06bd17a9faf0ad05bf0336eea4d219c0960bbc (diff) | |
download | rails-f62fb985b6a7b90872148f0786219c9cc94c9356.tar.gz rails-f62fb985b6a7b90872148f0786219c9cc94c9356.tar.bz2 rails-f62fb985b6a7b90872148f0786219c9cc94c9356.zip |
Remove deprecated `Proc#bind` with no replacement.
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/proc_test.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/test/core_ext/proc_test.rb b/activesupport/test/core_ext/proc_test.rb deleted file mode 100644 index c4d5592196..0000000000 --- a/activesupport/test/core_ext/proc_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'abstract_unit' -require 'active_support/core_ext/proc' - -class ProcTests < ActiveSupport::TestCase - def test_bind_returns_method_with_changed_self - assert_deprecated do - block = Proc.new { self } - assert_equal self, block.call - bound_block = block.bind("hello") - assert_not_equal block, bound_block - assert_equal "hello", bound_block.call - end - end -end |