Sha256: 78ba81eeb9852e9c6d750e990a1d2d98353e6a53861d2f7c5d593656a310440c

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

require 'db/hsqldb'
require 'schema_dump'

class HSQLDBSchemaDumpTest < Test::Unit::TestCase
  include SchemaDumpTestMethods

  DbTypeMigration.big_decimal_precision = 42 # whatever - arbitrary

  def test_schema_dump_decimal_when_scale_specified
    output = standard_dump(StringIO.new, [/^[^d]/]) # keep db_types
    # t.column :sample_small_decimal, :decimal, :precision => 3, :scale => 2, :default => 3.14
    assert_match %r{t.decimal\s+"sample_small_decimal",\s+:precision => 3,\s+:scale => 2}, output
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/hsqldb_schema_dump_test.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/db/hsqldb/schema_dump_test.rb
activerecord-jdbc-adapter-1.2.9 test/hsqldb_schema_dump_test.rb
activerecord-jdbc-adapter-1.2.8 test/hsqldb_schema_dump_test.rb