1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix boolean test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-03-19 17:06:53 +00:00
parent ab9f324423
commit 46106755b7

View file

@ -747,9 +747,9 @@ class BasicsTest < Test::Unit::TestCase
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)