diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-08 20:00:26 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-08 20:00:51 -0200 |
commit | 507d23c421b189ac8386e0605c57ab3db831001e (patch) | |
tree | 0587712af3793fbf329b99413466c52f46c861cf /activerecord | |
parent | c7a4fef92253900264534fd93760bf6381d86cf1 (diff) | |
download | rails-507d23c421b189ac8386e0605c57ab3db831001e.tar.gz rails-507d23c421b189ac8386e0605c57ab3db831001e.tar.bz2 rails-507d23c421b189ac8386e0605c57ab3db831001e.zip |
Fix syntax error and remove duplicated test
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/relation/where_test.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/activerecord/test/cases/relation/where_test.rb b/activerecord/test/cases/relation/where_test.rb index d1c3690478..f69a248491 100644 --- a/activerecord/test/cases/relation/where_test.rb +++ b/activerecord/test/cases/relation/where_test.rb @@ -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 |