Module: PGSpecHelper::IgnoredSchemas

Included in:
PGSpecHelper
Defined in:
lib/pg_spec_helper/ignored_schemas.rb

Instance Method Summary collapse

Instance Method Details

#ignore_schema(schema_name) ⇒ Object

add a schema to the list of ignored schemas



6
7
8
9
# File 'lib/pg_spec_helper/ignored_schemas.rb', line 6

def ignore_schema schema_name
  @ignored_schemas ||= []
  @ignored_schemas << schema_name.to_sym
end

#ignored_schemasObject

get a list of ignored schemas



12
13
14
# File 'lib/pg_spec_helper/ignored_schemas.rb', line 12

def ignored_schemas
  ([:information_schema] + (@ignored_schemas || []))
end