TimeEqMatcher appears to be not needed (anymore?) #1997
akostadinov
started this conversation in
Ideas
Replies: 0 comments 1 reply
-
RuboCop has no such rule, it seems to be a discourse-specific cop https://github.com/discourse/rubocop-discourse. I'm not sure if rspec even has |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that TimeEqMatcher is described as:
I don't see a point in this because Time comparison in Ruby is smart enough to adjust for time zones.
The time zone in the Time object only matters for presentation but in comparisons the adjusted actual time is being used.
So I'm wondering why is this rule implemented. Was it needed in the past, or does it still have practical value?
Beta Was this translation helpful? Give feedback.
All reactions