aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation/where_clause_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-25 16:44:04 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-25 16:46:54 -0700
commit320600c773a16418fe37eccea2eb1082f58062f7 (patch)
treed86a82ab4a16a178c16d747257d9dac46a3c0908 /activerecord/test/cases/relation/where_clause_test.rb
parent87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4 (diff)
downloadrails-320600c773a16418fe37eccea2eb1082f58062f7.tar.gz
rails-320600c773a16418fe37eccea2eb1082f58062f7.tar.bz2
rails-320600c773a16418fe37eccea2eb1082f58062f7.zip
Remove all references to `where_values` in association code
Diffstat (limited to 'activerecord/test/cases/relation/where_clause_test.rb')
-rw-r--r--activerecord/test/cases/relation/where_clause_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/relation/where_clause_test.rb b/activerecord/test/cases/relation/where_clause_test.rb
index ec334240cc..b498739e84 100644
--- a/activerecord/test/cases/relation/where_clause_test.rb
+++ b/activerecord/test/cases/relation/where_clause_test.rb
@@ -66,6 +66,11 @@ class ActiveRecord::Relation
# We might be able to change the implementation to remove conflicts by index, rather than column name
end
+ test "a clause knows if it is empty" do
+ assert WhereClause.empty.empty?
+ assert_not WhereClause.new(["anything"], []).empty?
+ end
+
private
def table