aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-13 13:12:28 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-13 13:17:43 +0100
commitbe89e9a35162b3015e2aee53300fdf04752652ce (patch)
tree35aad2aa257da5a1f416da2be1a98e03c4ba4337 /activerecord/test/cases/relation_test.rb
parent8d5be98ad72939037f1be52aa4bb4672fff02abb (diff)
downloadrails-be89e9a35162b3015e2aee53300fdf04752652ce.tar.gz
rails-be89e9a35162b3015e2aee53300fdf04752652ce.tar.bz2
rails-be89e9a35162b3015e2aee53300fdf04752652ce.zip
remove apply_finder_options call from AssociationScope
Diffstat (limited to 'activerecord/test/cases/relation_test.rb')
-rw-r--r--activerecord/test/cases/relation_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb
index fdd8e2112e..633654a961 100644
--- a/activerecord/test/cases/relation_test.rb
+++ b/activerecord/test/cases/relation_test.rb
@@ -176,6 +176,11 @@ module ActiveRecord
assert relation.is_a?(mod)
end
+ test 'extending! with empty args' do
+ relation.extending!
+ assert_equal [], relation.extending_values
+ end
+
(Relation::SINGLE_VALUE_METHODS - [:lock, :reordering, :reverse_order, :create_with]).each do |method|
test "##{method}!" do
assert relation.public_send("#{method}!", :foo).equal?(relation)