aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql
diff options
context:
space:
mode:
authorDaniel Schierbeck <daniel.schierbeck@gmail.com>2011-07-08 15:59:46 +0200
committerDaniel Schierbeck <daniel.schierbeck@gmail.com>2011-07-08 16:05:55 +0200
commit9991f0f15a80025188182b6f73267b7dfb1f96c2 (patch)
tree85325c82006fd5df5f006e6741db51d2b53b2ee8 /activerecord/test/cases/adapters/postgresql
parent4f7ca00bf28fab4bc788e278734debaec70ea838 (diff)
downloadrails-9991f0f15a80025188182b6f73267b7dfb1f96c2.tar.gz
rails-9991f0f15a80025188182b6f73267b7dfb1f96c2.tar.bz2
rails-9991f0f15a80025188182b6f73267b7dfb1f96c2.zip
Refactor PostgreSQLAdapter a bit
Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r--activerecord/test/cases/adapters/postgresql/schema_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/schema_test.rb b/activerecord/test/cases/adapters/postgresql/schema_test.rb
index 27e7b1a1c3..3a7f1badf0 100644
--- a/activerecord/test/cases/adapters/postgresql/schema_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/schema_test.rb
@@ -229,8 +229,8 @@ class SchemaTest < ActiveRecord::TestCase
%("schema"."table_name") => %w{schema table_name},
%("even spaces".table) => ['even spaces','table'],
%(schema."table.name") => ['schema', 'table.name']
- }.each do |given,expect|
- assert_equal expect, @connection.send(:extract_schema_and_table, given)
+ }.each do |given, expect|
+ assert_equal expect, ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Utils.extract_schema_and_table(given)
end
end