mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix syntax error and remove duplicated test
This commit is contained in:
parent
c7a4fef922
commit
507d23c421
1 changed files with 4 additions and 6 deletions
|
@ -82,6 +82,10 @@ module ActiveRecord
|
|||
assert_equal 0, Post.where(:posts => {}).count
|
||||
end
|
||||
|
||||
def test_where_with_table_name_and_empty_array
|
||||
assert_equal 0, Post.where(:id => []).count
|
||||
end
|
||||
|
||||
def test_where_with_empty_hash_and_no_foreign_key
|
||||
assert_equal 0, Edge.where(:sink => {}).count
|
||||
end
|
||||
|
@ -90,12 +94,6 @@ module ActiveRecord
|
|||
[[], {}, nil, ""].each do |blank|
|
||||
assert_equal 4, Edge.where(blank).order("sink_id").to_a.size
|
||||
end
|
||||
def test_where_with_table_name_and_empty_array
|
||||
assert_equal 0, Post.where(:id => []).count
|
||||
end
|
||||
|
||||
def test_where_with_empty_hash_and_no_foreign_key
|
||||
assert_equal 0, Edge.where(:sink => {}).count
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue