aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-12-01 16:41:50 -0700
committerSean Griffin <sean@seantheprogrammer.com>2015-12-01 16:41:50 -0700
commit0d70078f11e61bd6cd1f67527b9622e569b989b5 (patch)
tree78ba68d2984072e8a838e54e744dc3537e1b84c0 /activerecord/test
parentc403edf9c150693df2477ddcf23dcd52e9bef9ff (diff)
downloadrails-0d70078f11e61bd6cd1f67527b9622e569b989b5.tar.gz
rails-0d70078f11e61bd6cd1f67527b9622e569b989b5.tar.bz2
rails-0d70078f11e61bd6cd1f67527b9622e569b989b5.zip
Ensure `Relation` responds to `shuffle`
It appears that I missed this one when I delegated all the non-mutation array methods that were not on Enumerable
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation/delegation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb
index b4269bd56d..f0e07e0731 100644
--- a/activerecord/test/cases/relation/delegation_test.rb
+++ b/activerecord/test/cases/relation/delegation_test.rb
@@ -27,7 +27,7 @@ module ActiveRecord
module DelegationWhitelistBlacklistTests
ARRAY_DELEGATES = [
- :+, :-, :|, :&, :[],
+ :+, :-, :|, :&, :[], :shuffle,
:all?, :collect, :compact, :detect, :each, :each_cons, :each_with_index,
:exclude?, :find_all, :flat_map, :group_by, :include?, :length,
:map, :none?, :one?, :partition, :reject, :reverse,