Setup Test Environment using RSpec and FactoryBot gem - YouTube
PG::ConnectionBad: could not connect to server: No such file or directory precompilation failed Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? - Microsoft Q&A