Sha256: 4d626cd49bfafdeccd56b2445992648308cf6054f55d7a016152bd0bb2b2d106

Contents?: true

Size: 716 Bytes

Versions: 31

Compression:

Stored size: 716 Bytes

Contents

require 'jdbc_common'
require 'models/entry'
require 'models/mixed_case'

class MixedCaseTest < Test::Unit::TestCase
  def setup
    Migration::MixedCase.up
    @table_name = User.table_name
    User.table_name = 'tblUsers'
    User.reset_column_information
  end

  def teardown
    User.table_name = @table_name
    User.reset_column_information
    Migration::MixedCase.down
  end

  def test_create
    mixed_case = MixedCase.create :SOME_value => 'some value'
    assert_equal 'some value', mixed_case.SOME_value
  end

  def test_find_mixed_table_name
    User.create :firstName => "Nick", :lastName => "Sieger"
    u = User.find :first
    assert_equal "Nick Sieger", "#{u.firstName} #{u.lastName}"
  end
end

Version data entries

31 entries across 31 versions & 7 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/db/postgres/mixed_case_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/db/postgres/mixed_case_test.rb
activerecord-jdbc-adapter-1.2.9 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.8 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.5 test/postgres_mixed_case_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/postgres_mixed_case_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/postgres_mixed_case_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/postgres_mixed_case_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.2.1 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-onsite-1.2.2 test/postgres_mixed_case_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 test/postgres_mixed_case_test.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.2 test/postgres_mixed_case_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.1 test/postgres_mixed_case_test.rb
c3-activerecord-jdbc-adapter-1.1.3.1 test/postgres_mixed_case_test.rb
activerecord-jdbc-adapter-1.2.0 test/postgres_mixed_case_test.rb