Sha256: e5d892db7b90be7406f02d42ef3cc111301fc34e599b95321a4063bd1aede813

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

require "cases/helper"

class Mysql2EnumTest < ActiveRecord::Mysql2TestCase
  class EnumTest < ActiveRecord::Base
  end

  def test_enum_limit
    column = EnumTest.columns_hash['enum_column']
    assert_equal 8, column.limit
  end

  def test_should_not_be_blob_or_text_column
    column = EnumTest.columns_hash['enum_column']
    assert_not column.blob_or_text_column?
  end

  def test_should_not_be_unsigned
    column = EnumTest.columns_hash['enum_column']
    assert_not column.unsigned?
  end

  def test_should_not_be_bigint
    column = EnumTest.columns_hash['enum_column']
    assert_not column.bigint?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb
ibm_db-5.1.0-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb
ibm_db-5.0.5-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb
ibm_db-5.0.4-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb
ibm_db-5.0.3-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb
ibm_db-5.0.2-x86-mingw32 test/cases/adapters/mysql2/enum_test.rb