Sha256: 8a0558d12a7ef43ccd494a27a9b0b5811ad9ff428183277965e43656f735356e
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
#!/usr/bin/env ruby require 'test/unit' require File.join(File.dirname(__FILE__), 'connection') module Schemas class Quoting < Test::Unit::TestCase def setup con.default_schema = 'dbo' end def test_quote_column_name assert_equal con.quote_column_name('schema_checks'), '[schema_checks]' assert_equal con.quote_column_name('dbo.schema_checks'), '[dbo].[schema_checks]' assert_equal con.quote_column_name('activerecord_unittest..schema_checks'), '[activerecord_unittest]..[schema_checks]' assert_equal con.quote_column_name('activerecord_unittest.dbo.schema_checks'), '[activerecord_unittest].[dbo].[schema_checks]' end def con con = ActiveRecord::Base.connection end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-sqlserver-adapter-schemas-1.0.2 | test/schemas/quoting.rb |