Skip to content
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

Document and test ActionDispatch server_port #24992

Merged
merged 1 commit into from May 14, 2016
Merged

Document and test ActionDispatch server_port #24992

merged 1 commit into from May 14, 2016

Conversation

tomkadwill
Copy link
Contributor

Summary

Added inline documentation and tests for server_port. Currently server_port is not tested for different return values and is not documented.

@rails-bot
Copy link

r? @eileencodes

(@rails-bot has picked a reviewer for you, use r? to override)

# include ActionDispatch::Http::URL
# end
#
# req = Request.new 'SERVER_PORT' => '80'

Choose a reason for hiding this comment

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

Should it be #=>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, that part should be a hash. It is the same as actionpack/test/dispatch/request_test.rb#366

Choose a reason for hiding this comment

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

Ah, sorry I got it. 👍

@maclover7
Copy link
Contributor

👍

@eileencodes eileencodes merged commit c83e684 into rails:master May 14, 2016
@eileencodes
Copy link
Member

Thanks for the PR! 😄

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

Successfully merging this pull request may close these issues.

None yet

5 participants