Permalink
Browse files

Fix boolean test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ab9f324 commit 46106755b7c8a783a53791e4ed2f5e98a0c40170 @dhh dhh committed Mar 19, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/base_test.rb
@@ -747,9 +747,9 @@ def test_boolean
end
def test_boolean_cast_from_string
- b_false = Booleantest.create({ "value" => "false" })
+ b_false = Booleantest.create({ "value" => "0" })
false_id = b_false.id
- b_true = Booleantest.create({ "value" => "true" })
+ b_true = Booleantest.create({ "value" => "1" })
true_id = b_true.id
b_false = Booleantest.find(false_id)

0 comments on commit 4610675

Please sign in to comment.