aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-16 09:09:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-16 09:09:04 +0000
commit8da9d02e6e1b4336892d3066de9412ec1aa02a68 (patch)
tree8a54e85855ba4031d013b7e5cb456255ce4ebf2c /actionpack
parentba942dfc4523610ad37d2414627698563b91b125 (diff)
downloadrails-8da9d02e6e1b4336892d3066de9412ec1aa02a68.tar.gz
rails-8da9d02e6e1b4336892d3066de9412ec1aa02a68.tar.bz2
rails-8da9d02e6e1b4336892d3066de9412ec1aa02a68.zip
Include QUOTED_TYPE constant in ActionPack AR assertions tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/active_record_assertions_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/active_record_assertions_test.rb b/actionpack/test/controller/active_record_assertions_test.rb
index a60df5a668..b8b6309295 100644
--- a/actionpack/test/controller/active_record_assertions_test.rb
+++ b/actionpack/test/controller/active_record_assertions_test.rb
@@ -23,6 +23,7 @@ end
# Set up company fixtures.
$LOAD_PATH << "#{path_to_ar}/test"
+QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type') unless Object.const_defined?(:QUOTED_TYPE)
require 'fixtures/company'
File.read("#{path_to_ar}/test/fixtures/db_definitions/sqlite.sql").split(';').each do |sql|
ActiveRecord::Base.connection.execute(sql) unless sql.blank?