Topic: How to simulate time passage during tests?
The primary function of my rails app compares database date values to the current date. In order to test this functionality, I need to simulate time passing. I currently roll back date fields to trigger certain processes. This is becoming increasingly tedious as my application becomes more complex. I would love to artificially advance ActiveRecord datetime during my test to more naturally simulate the passage of time instead of tricking every field in my database into believing it. Anyone ever done this?