Skip to content

Commit

Permalink
test: add more verifications
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Jan 17, 2025
1 parent d809d78 commit b0ef604
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions acceptance/cases/models/binary_identifiers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ def test_includes_works
# Access the owner to ensure it's preloaded
assert_equal user.full_name, project.owner.full_name
end
assert_equal 3, loaded_projects.count
end

# Spanner should execute 2 queries: one for projects and one for users
assert_equal 2, query_count

user = User.all.includes(:projects).first
assert user
assert_equal 3, user.projects.count
end

private
Expand Down

0 comments on commit b0ef604

Please sign in to comment.