How to fake time in a Postgres database: And an example Ruby on Rails app, too!

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 #database: https://rubyonrails.ba/single/how-to-fake-time-in-a-postgres-database-and-an-example-ruby-on-rails-app-too

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles