diff options
author | Paul Gallagher <gallagher.paul@gmail.com> | 2011-06-11 18:34:09 +0800 |
---|---|---|
committer | Paul Gallagher <gallagher.paul@gmail.com> | 2011-06-11 18:34:09 +0800 |
commit | f8c4b374c831d6f37efb7b7685fe1d8fe101e096 (patch) | |
tree | 5d4bc7c060952bc64dee459090b6f7fcfb8407ae /activerecord/test/cases/adapters/postgresql | |
parent | 1d7c751bf703c729887e2d8a9ae104a8e6aef010 (diff) | |
download | rails-f8c4b374c831d6f37efb7b7685fe1d8fe101e096.tar.gz rails-f8c4b374c831d6f37efb7b7685fe1d8fe101e096.tar.bz2 rails-f8c4b374c831d6f37efb7b7685fe1d8fe101e096.zip |
make extract_schema_and_table a private method
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/schema_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
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 |