Sha256: c6e30d33e35ab15209ed43f08b4ebaf34eaf167a8e2aaa4178b5867ae71ecea0
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 Bytes
Contents
require 'cases/helper' class PostgreSQLUtilsTest < ActiveSupport::TestCase include ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::Utils def test_extract_schema_and_table { %(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") => ['schema', 'table.name'] }.each do |given, expect| assert_equal expect, extract_schema_and_table(given) end end end
Version data entries
4 entries across 4 versions & 1 rubygems