Sha256: 4865605d9d3cd04158ea21a02ec51c14f57a377cee17217c4dec35a96e230602

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), 'lib')

require 'test/unit'

require 'og'

class TestCaseOgTypes < Test::Unit::TestCase # :nodoc: all
  include Og

  class User
    property :name, Og::VarChar(16), :unique => true

    def initialize(name = nil)
      @name = name
    end
  end
  
  def test_all
    assert_equal [String, {:sql=>"VARCHAR(16)"}], Og::VarChar(16)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
og-0.21.0 test/og/tc_types.rb
og-0.21.2 test/og/tc_types.rb
og-0.22.0 test/og/tc_types.rb
og-0.23.0 test/og/tc_types.rb