Skip to content

Cleanup of afamily/pfamily specs for Addrinfo#initialize #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented May 31, 2025

It looks like there was a lot of copy-paste in this one, often the description did not match the actual test.
The descriptions have been updated to use the shortest human readable syntax, so no Socket:: namespace and no PF_ prefix to the name. This matches the afamily specs (or: most of them).

Additionally, a few additional spaces in the descriptions have been removed.

It looks like there was a lot of copy-paste in this one, often the
description did not match the actual test.
The descriptions have been updated to use the shortest human readable
syntax, so no `Socket::` namespace and no `PF_` prefix to the name. This
matches the afamily specs (or: most of them).

Additionally, a few additional spaces in the descriptions have been
removed.
@@ -53,7 +53,7 @@
@addrinfo.ip_port.should == 25
end

it "returns the Socket::UNSPEC pfamily" do
it "returns the INET6 pfamily" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but in most cases a test checks that a getter returns a value passed into a constructor and nothing more. So a test title may be more generic, e.g. returns pfamily. And it seems it doesn't matter what a specific value is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants