diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-05-16 15:20:52 -0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-05-16 22:23:44 +0200 |
commit | 821e15e5f2d9ef2aa43918a16cbd00f40c221e95 (patch) | |
tree | deb326567a2f383afd37b20f231f490d67c8ac82 /activerecord/test/cases/named_scope_test.rb | |
parent | 64d109e3539ad600f58536d3ecabd2f87b67fd1c (diff) | |
download | rails-821e15e5f2d9ef2aa43918a16cbd00f40c221e95.tar.gz rails-821e15e5f2d9ef2aa43918a16cbd00f40c221e95.tar.bz2 rails-821e15e5f2d9ef2aa43918a16cbd00f40c221e95.zip |
Change on Array extension from rand => random_element [#4555 state:committed]
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'activerecord/test/cases/named_scope_test.rb')
-rw-r--r-- | activerecord/test/cases/named_scope_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/named_scope_test.rb b/activerecord/test/cases/named_scope_test.rb index 9db0e7c143..2007f5492f 100644 --- a/activerecord/test/cases/named_scope_test.rb +++ b/activerecord/test/cases/named_scope_test.rb @@ -301,7 +301,7 @@ class NamedScopeTest < ActiveRecord::TestCase end def test_rand_should_select_a_random_object_from_proxy - assert_kind_of Topic, Topic.approved.rand + assert_kind_of Topic, Topic.approved.random_element end def test_should_use_where_in_query_for_named_scope |