Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because Time.now is a global method whose behavior you've just (temporarily) modified. Any tests or code that do depend on Time.now returning the actual current time won't work correctly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: