diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-27 08:46:40 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-27 08:46:40 -0800 |
commit | afd4a14332c49fa0e236e6904a5f7e09ce33c407 (patch) | |
tree | 7d7565d3e456ad4120f88a24157f82cc5e735308 /activerecord/test/cases/relation | |
parent | 5c1354901ec36f3f9359c86d0348741a219baa47 (diff) | |
download | rails-afd4a14332c49fa0e236e6904a5f7e09ce33c407.tar.gz rails-afd4a14332c49fa0e236e6904a5f7e09ce33c407.tar.bz2 rails-afd4a14332c49fa0e236e6904a5f7e09ce33c407.zip |
Revert "Merge pull request #9207 from dylanahsmith/mysql-quote-numeric"
This reverts commit 408227d9c5ed7de26310d72a1a99c1ee02311c63, reversing
changes made to dca0b57d03deffc933763482e615c3cf0b9a1d97.
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r-- | activerecord/test/cases/relation/where_test.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/activerecord/test/cases/relation/where_test.rb b/activerecord/test/cases/relation/where_test.rb index 53cdf89b1f..c43c7601a2 100644 --- a/activerecord/test/cases/relation/where_test.rb +++ b/activerecord/test/cases/relation/where_test.rb @@ -108,30 +108,5 @@ module ActiveRecord assert_equal 4, Edge.where(blank).order("sink_id").to_a.size end end - - def test_where_with_integer_for_string_column - count = Post.where(:title => 0).count - assert_equal 0, count - end - - def test_where_with_float_for_string_column - count = Post.where(:title => 0.0).count - assert_equal 0, count - end - - def test_where_with_boolean_for_string_column - count = Post.where(:title => false).count - assert_equal 0, count - end - - def test_where_with_decimal_for_string_column - count = Post.where(:title => BigDecimal.new(0)).count - assert_equal 0, count - end - - def test_where_with_duration_for_string_column - count = Post.where(:title => 0.seconds).count - assert_equal 0, count - end end end |