From f8c4b374c831d6f37efb7b7685fe1d8fe101e096 Mon Sep 17 00:00:00 2001 From: Paul Gallagher Date: Sat, 11 Jun 2011 18:34:09 +0800 Subject: make extract_schema_and_table a private method --- activerecord/test/cases/adapters/postgresql/schema_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'activerecord/test/cases/adapters/postgresql') diff --git a/activerecord/test/cases/adapters/postgresql/schema_test.rb b/activerecord/test/cases/adapters/postgresql/schema_test.rb index 6d98bd4a39..8668957d5a 100644 --- a/activerecord/test/cases/adapters/postgresql/schema_test.rb +++ b/activerecord/test/cases/adapters/postgresql/schema_test.rb @@ -223,15 +223,15 @@ class SchemaTest < ActiveRecord::TestCase def test_extract_schema_and_table { %(table_name) => [nil,'table_name'], - %("table.name") => [nil,'"table.name"'], + %("table.name") => [nil,'table.name'], %(schema.table_name) => %w{schema table_name}, - %("schema".table_name) => %w{"schema" table_name}, - %(schema."table_name") => %w{schema "table_name"}, - %("schema"."table_name") => %w{"schema" "table_name"}, - %("even spaces".table) => ['"even spaces"','table'], - %(schema."table.name") => %w{schema "table.name"} + %("schema".table_name) => %w{schema table_name}, + %(schema."table_name") => %w{schema table_name}, + %("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.extract_schema_and_table(given) + assert_equal expect, @connection.send(:extract_schema_and_table, given) end end -- cgit v1.2.3