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

Add specs for Date#yday and DateTime#yday #1172

Merged
merged 4 commits into from
Jun 29, 2024
Merged

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Jun 29, 2024

This is done by converting the existing specs for Time#yday into a shared spec that can be used by the other two classes. An additional spec to cover leap years has been added.

@@ -0,0 +1,13 @@
describe :yday_date, shared: true do
Copy link
Member

Choose a reason for hiding this comment

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

It's a common convention to use the following format <class>_<method>, so it could be time_yday.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated that one

@andrykonchin
Copy link
Member

Thank you!

@andrykonchin andrykonchin merged commit e10c053 into ruby:master Jun 29, 2024
14 checks passed
@herwinw herwinw deleted the date_yday branch June 29, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants