Module: PGSpecHelper::IgnoredSchemas
- Included in:
- PGSpecHelper
- Defined in:
- lib/pg_spec_helper/ignored_schemas.rb
Instance Method Summary collapse
-
#ignore_schema(schema_name) ⇒ Object
add a schema to the list of ignored schemas.
-
#ignored_schemas ⇒ Object
get a list of ignored schemas.
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_schemas ⇒ Object
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 |