Methods
- I
- Q
- S
- T
Instance Public methods
id()
Link
quoted_id()
Link
setup()
Link
test_quoted_id()
Link
test_type_cast_bigdecimal()
Link
test_type_cast_binary_encoding_without_logger()
Link
# File activerecord/test/cases/adapters/sqlite3/quoting_test.rb, line 17 def test_type_cast_binary_encoding_without_logger @conn.extend(Module.new { def logger; end }) column = Struct.new(:type, :name).new(:string, "foo") binary = SecureRandom.hex expected = binary.dup.encode!('utf-8') assert_equal expected, @conn.type_cast(binary, column) end
test_type_cast_date()
Link
test_type_cast_false()
Link
test_type_cast_nil()
Link
test_type_cast_numeric()
Link
test_type_cast_string()
Link
# File activerecord/test/cases/adapters/sqlite3/quoting_test.rb, line 63 def test_type_cast_string assert_equal '10', @conn.type_cast('10', nil) c = Column.new(nil, 1, 'int') assert_equal 10, @conn.type_cast('10', c) c = Column.new(nil, 1, 'float') assert_equal 10.1, @conn.type_cast('10.1', c) c = Column.new(nil, 1, 'binary') assert_equal '10.1', @conn.type_cast('10.1', c) c = Column.new(nil, 1, 'date') assert_equal '10.1', @conn.type_cast('10.1', c) end
test_type_cast_symbol()
Link
test_type_cast_time()
Link
test_type_cast_true()
Link