blob: e9c2ccfca4c825868529ec0f8469174cc3855995 (
plain) (
tree)
|
|
require "cases/helper"
require "active_model/type"
module ActiveModel
module Type
class BinaryTest < ActiveModel::TestCase
def test_type_cast_binary
type = Type::Binary.new
assert_nil type.cast(nil)
assert_equal "1", type.cast("1")
assert_equal 1, type.cast(1)
end
end
end
end
|