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 failing date dependent test #2228

Merged
merged 1 commit into from
Jan 4, 2016
Merged

Fix failing date dependent test #2228

merged 1 commit into from
Jan 4, 2016

Conversation

erkde
Copy link
Contributor

@erkde erkde commented Jan 3, 2016

This method seems to have been failing one test since we ticked over to 2016. After the test travels to Jan 1 2015 with Timecop, the call to 55.years.ago incorrectly goes a little too far:

[1] pry(#<SmartAnswer::Calculators::StatePensionAmountCalculatorTest>)> 55.years.ago

=> Thu, 31 Dec 1959 13:00:00 UTC +00:00

@erkde erkde force-pushed the fix_date_dependent_test branch from a3cee73 to c3c4296 Compare January 3, 2016 12:06
This test seems to have been failing since we ticked over to 2016. After traveling to Jan 1 2015 with Timecop, the call to 55.years.ago incorrectly goes a little too far:

[1] pry(#<SmartAnswer::Calculators::StatePensionAmountCalculatorTest>)> 55.years.ago

=> Thu, 31 Dec 1959 13:00:00 UTC +00:00
@erkde erkde force-pushed the fix_date_dependent_test branch from c6b072b to ebf9e8a Compare January 3, 2016 21:01
tadast added a commit that referenced this pull request Jan 4, 2016
@tadast tadast merged commit f7d66b7 into master Jan 4, 2016
@tadast tadast deleted the fix_date_dependent_test branch January 4, 2016 10:22
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