aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation/delegation_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/relation/delegation_test.rb')
-rw-r--r--activerecord/test/cases/relation/delegation_test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb
index c171c5e14e..7f99b6841f 100644
--- a/activerecord/test/cases/relation/delegation_test.rb
+++ b/activerecord/test/cases/relation/delegation_test.rb
@@ -61,8 +61,10 @@ module ActiveRecord
end
class DelegationRelationTest < DelegationTest
+ fixtures :comments
+
def target
- Comment.where.not(body: nil)
+ Comment.where(body: 'Normal type')
end
[:map, :collect].each do |method|
@@ -88,7 +90,7 @@ module ActiveRecord
end
[:select!, :uniq!].each do |method|
- test "##{method} is triggers an immutable error" do
+ test "##{method} triggers an immutable error" do
assert_raises ActiveRecord::ImmutableRelation do
assert_responds(target, method)
end