Skip to content

Commit 693abfa

Browse files
committed
Improved test code [skip ci]
1 parent a808eec commit 693abfa

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

test/pgslice_test.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,27 @@ def test_add_partitions_missing_table
7373
assert_error "Table not found", "add_partitions Items"
7474
end
7575

76+
def test_add_partitions_non_partitioned_table
77+
assert_error "No settings found", "add_partitions Posts"
78+
end
79+
7680
def test_fill_missing_table
7781
assert_error "Table not found", "fill Items"
7882
end
7983

80-
def test_analyze_table
84+
def test_analyze_missing_table
8185
assert_error "Table not found", "analyze Items"
8286
end
8387

84-
def test_swap_table
88+
def test_swap_missing_table
8589
assert_error "Table not found", "swap Items"
8690
end
8791

88-
def test_unswap_table
92+
def test_unswap_missing_table
8993
assert_error "Table not found", "unswap Items"
9094
end
9195

92-
def test_unprep_table
96+
def test_unprep_missing_table
9397
assert_error "Table not found", "unprep Items"
9498
end
9599

0 commit comments

Comments
 (0)