Permalink
Browse files

test bind value equality

  • Loading branch information...
tenderlove committed Jan 15, 2014
1 parent e0b623a commit 07a9f4767a470742d9719e382a5b8f3141d5845f
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/relations_test.rb
@@ -1515,10 +1515,10 @@ def test_presence
left = Post.where(title: "omg").where(comments_count: 1)
right = Post.where(title: "wtf").where(title: "bbq")
- expected = [left.where_values[1]] + right.where_values
+ expected = [left.bind_values[1]] + right.bind_values
merged = left.merge(right)
- assert_equal expected, merged.where_values
+ assert_equal expected, merged.bind_values
assert !merged.to_sql.include?("omg")
assert merged.to_sql.include?("wtf")
assert merged.to_sql.include?("bbq")

0 comments on commit 07a9f47

Please sign in to comment.