How to fake time in a Postgres database: And an example Ruby on Rails app, too!
21-Apr-2022 1535
First things first, I am writing this despite my general opposition to faking time. Typically, when invoking an API in a unit or integration test, it’s preferable to pass time as a value as opposed to mutating a global clock. And if you’re writing full-stack tests, then crafting data .
How to fake time in a Postgres database: And an example Ruby on Rails app, too! #ruby #rubydeveloper #rubyonrails #Postgres #database: #example #Rails #database: https://rubyonrails.ba/link/how-to-fake-time-in-a-postgres-database-and-an-example-ruby-on-rails-app-too