Sha256: c2fa5163d98b6148f27cd0c976d693f69db2b48c80a00d2767a0739c862f0382
Contents?: true
Size: 514 Bytes
Versions: 29
Compression:
Stored size: 514 Bytes
Contents
require 'cases/sqlserver_helper' require 'models/order' class TableNameTestSqlserver < ActiveRecord::TestCase self.use_transactional_fixtures = false def setup Order.table_name = '[orders]' Order.reset_column_information end should 'load columns with escaped table name for model' do assert_equal 4, Order.columns.length end should 'not re-escape table name if it is escaped already for SQL queries' do assert_sql(/SELECT \* FROM \[orders\]/) { Order.all } end end
Version data entries
29 entries across 29 versions & 7 rubygems