mirror of
https://github.com/github/rails.git
synced 2026-02-19 02:14:20 -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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user