From 3e251e00bb2f9b8c670907363bae589993da08e1 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Wed, 18 May 2022 11:25:02 -0300 Subject: [PATCH] spec: on the top we already make sure it exists --- spec/support/database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/database.rb b/spec/support/database.rb index 9a38ec8..bc2fa66 100644 --- a/spec/support/database.rb +++ b/spec/support/database.rb @@ -4,7 +4,7 @@ ENV['DB'] ||= 'postgres' conn_params = { database: :rating_test, host: '127.0.0.1' } -case ENV.fetch('DB', nil) +case ENV.fetch('DB') when 'mysql' require 'mysql2'