Sha256: df120985f9e75c69b38da4eca90665e00556c9caaa3014aee7b4b407cf539331
Contents?: true
Size: 775 Bytes
Versions: 21
Compression:
Stored size: 775 Bytes
Contents
# Copyright 2020 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. # frozen_string_literal: true require "test_helper" module ActiveRecord module Type class BooleanTest < SpannerAdapter::TestCase include SpannerAdapter::Types::TestHelper def test_convert_to_sql_type assert_equal "BOOL", connection.type_to_sql(:boolean) end def test_set_boolean_value_in_create record = TestTypeModel.create(active: true) record.reload assert_equal true, record.active record = TestTypeModel.create(active: false) record.reload assert_equal false, record.active end end end end
Version data entries
21 entries across 21 versions & 1 rubygems