diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-05-17 01:55:56 +0430 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-05-17 23:03:16 +0200 |
commit | 8c5e1652c7d1343a4b4acbc10bbcb59e202bf37d (patch) | |
tree | 214d5f62de7775bc9214778ef76ded3a4ccbed4b /activesupport/test | |
parent | f09d8f3e68ca7cf35a7905b00f85b84c3839c803 (diff) | |
download | rails-8c5e1652c7d1343a4b4acbc10bbcb59e202bf37d.tar.gz rails-8c5e1652c7d1343a4b4acbc10bbcb59e202bf37d.tar.bz2 rails-8c5e1652c7d1343a4b4acbc10bbcb59e202bf37d.zip |
Renames Array#rand -> Array#random_element
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/array_ext_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index ebd6806416..1f7cdb8ec1 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -368,10 +368,6 @@ class ArrayExtRandomTests < ActiveSupport::TestCase Kernel.expects(:rand).with(3).returns(1) assert_equal 2, [1, 2, 3].random_element end - - def test_deprecated_rand_on_array - assert_deprecated { [].rand } - end end class ArrayWrapperTests < Test::Unit::TestCase |