Skip to content

Commit

Permalink
Improved test for relation_sizes method
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 20, 2024
1 parent 20d9ffc commit 53ba89d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/space_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ def test_database_size
end

def test_relation_sizes
assert database.relation_sizes
relation_sizes = database.relation_sizes
assert relation_sizes.find { |r| r[:relation] == "users" }
assert relation_sizes.find { |r| r[:relation] == "users_pkey" }
assert relation_sizes.find { |r| r[:relation] == "all_users" }
end

def test_table_sizes
Expand Down

0 comments on commit 53ba89d

Please sign in to comment.