From 656fb866f91a87677ce501d3c9ad6aba9048d00f Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Thu, 6 Oct 2005 04:15:14 +0000 Subject: Quote booleans according the rules defined by the adapter * SQLite schema has been updated * Postgresql schema needs to be fixed too Simplify AR::Base#toggle to store the boolean, not the quoted value * expand the tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/deprecated_finder_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/deprecated_finder_test.rb') diff --git a/activerecord/test/deprecated_finder_test.rb b/activerecord/test/deprecated_finder_test.rb index 0111cff3ac..348292870b 100755 --- a/activerecord/test/deprecated_finder_test.rb +++ b/activerecord/test/deprecated_finder_test.rb @@ -38,8 +38,8 @@ class FinderTest < Test::Unit::TestCase end def test_deprecated_find_on_conditions - assert Topic.find_on_conditions(1, "approved = 0") - assert_raises(ActiveRecord::RecordNotFound) { Topic.find_on_conditions(1, "approved = 1") } + assert Topic.find_on_conditions(1, ["approved = ?", false]) + assert_raises(ActiveRecord::RecordNotFound) { Topic.find_on_conditions(1, ["approved = ?", true]) } end def test_condition_interpolation -- cgit v1.2.3