aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-04-11 21:03:11 -0400
committerGitHub <noreply@github.com>2018-04-11 21:03:11 -0400
commit7622b85a300a1863ece44eb429ddabdadbee7f77 (patch)
treedcdc8c7fd86e546015206e8b6a7da6679bfa5e70 /activerecord/test/cases/relation
parent733f3cbea8d81170a16425c46d194f3e51e1422e (diff)
parent115bbdac2b8e11ec92241b839665c5811cc8a2fb (diff)
downloadrails-7622b85a300a1863ece44eb429ddabdadbee7f77.tar.gz
rails-7622b85a300a1863ece44eb429ddabdadbee7f77.tar.bz2
rails-7622b85a300a1863ece44eb429ddabdadbee7f77.zip
Merge pull request #32536 from lsylvester/fix-immutable-relation-error-with-http-caching-and-collection-caching
Fix ActiveRecord::ImmutableRelation is raised when collection caching and HTTP caching are used together
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r--activerecord/test/cases/relation/mutation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb
index d6351bfe88..f82ecd4449 100644
--- a/activerecord/test/cases/relation/mutation_test.rb
+++ b/activerecord/test/cases/relation/mutation_test.rb
@@ -59,7 +59,7 @@ module ActiveRecord
assert_equal [], relation.extending_values
end
- (Relation::SINGLE_VALUE_METHODS - [:lock, :reordering, :reverse_order, :create_with, :skip_query_cache, :skip_preloading]).each do |method|
+ (Relation::SINGLE_VALUE_METHODS - [:lock, :reordering, :reverse_order, :create_with, :skip_query_cache]).each do |method|
test "##{method}!" do
assert relation.public_send("#{method}!", :foo).equal?(relation)
assert_equal :foo, relation.public_send("#{method}_value")