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

Fix the test that depends on the time helper #513

Merged
merged 1 commit into from Nov 14, 2021

Conversation

yuki24
Copy link
Contributor

@yuki24 yuki24 commented Nov 14, 2021

This PR fixes the failing test in the master branch. The test is failing on this line on Rails. Apparently, the time helper is now timezone-aware after this change rails/rails@b96f4ae, but now we have to set the default time zone to make the time helper work with string arguments.

Rather than setting a default time zone in the jbuilder test, we can just pass a Time object to get the test working.

@dhh dhh merged commit 606747f into rails:master Nov 14, 2021
@yuki24 yuki24 deleted the fix-test-with-time-helper branch November 14, 2021 11:59
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.

None yet

2 participants