|
1 | | -require "test_helper" |
| 1 | +require 'test_helper' |
2 | 2 |
|
3 | 3 | class CleanDumpTest < Minitest::Test |
4 | 4 | def test_basic_case |
5 | | - assert_cleans_dump "data/input.sql", "expectations/default_props.sql" |
| 5 | + assert_cleans_dump 'data/input.sql', 'expectations/default_props.sql' |
6 | 6 | end |
7 | 7 |
|
8 | 8 | def test_ignore_ids |
9 | | - assert_cleans_dump "data/input.sql", "expectations/ignore_ids.sql", ignore_ids: true |
| 9 | + assert_cleans_dump 'data/input.sql', 'expectations/ignore_ids.sql', ignore_ids: true |
10 | 10 | end |
11 | 11 |
|
12 | 12 | def test_order_column_definitions |
13 | | - assert_cleans_dump "data/input.sql", "expectations/order_column_definitions.sql", order_column_definitions: true |
| 13 | + assert_cleans_dump 'data/input.sql', 'expectations/order_column_definitions.sql', order_column_definitions: true |
14 | 14 | end |
15 | 15 |
|
16 | 16 | def test_order_schema_migrations_values |
17 | | - assert_cleans_dump "data/input.sql", "expectations/order_schema_migrations_values.sql", order_schema_migrations_values: true |
| 17 | + assert_cleans_dump 'data/input.sql', 'expectations/order_schema_migrations_values.sql', |
| 18 | + order_schema_migrations_values: true |
18 | 19 | end |
19 | 20 |
|
20 | | - def test_meta_tables_after_main |
21 | | - assert_cleans_dump "data/input.sql", "expectations/meta_tables_after_main.sql", meta_tables_after_main: true |
| 21 | + def test_group_table_definition |
| 22 | + assert_cleans_dump 'data/input.sql', 'expectations/group_table_definition.sql', group_table_definition: true |
22 | 23 | end |
23 | 24 |
|
24 | 25 | def test_keep_extensions_all |
25 | | - assert_cleans_dump "data/input.sql", "expectations/keep_extensions_all.sql", keep_extensions: :all |
| 26 | + assert_cleans_dump 'data/input.sql', 'expectations/keep_extensions_all.sql', keep_extensions: :all |
26 | 27 | end |
27 | 28 |
|
28 | 29 | def test_partitions |
29 | | - assert_cleans_dump "data/partitions.sql", "expectations/partitions.sql" |
| 30 | + assert_cleans_dump 'data/partitions.sql', 'expectations/partitions.sql' |
30 | 31 | end |
31 | 32 |
|
32 | 33 | def test_ignored_schemas |
33 | | - assert_cleans_dump "data/ignored_schemas.sql", "expectations/ignored_schemas_pganalyze.sql", ignore_schemas: ['pganalyze'] |
34 | | - assert_cleans_dump "data/ignored_schemas.sql", "expectations/ignored_schemas_myschema.sql", ignore_schemas: ['myschema'] |
| 34 | + assert_cleans_dump 'data/ignored_schemas.sql', 'expectations/ignored_schemas_pganalyze.sql', |
| 35 | + ignore_schemas: ['pganalyze'] |
| 36 | + assert_cleans_dump 'data/ignored_schemas.sql', 'expectations/ignored_schemas_myschema.sql', |
| 37 | + ignore_schemas: ['myschema'] |
35 | 38 | end |
36 | 39 |
|
37 | 40 | private |
|
0 commit comments