Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Jan 29, 2025
1 parent 3f3d2f4 commit dd2dad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def self.oracle?
end

def self.mysql?
ENV['DB_ADAPTER'] == 'mysql2' || ENV['DB_ADAPTER'] == 'trilogy'
%w[mysql2 trilogy].include?(ENV.fetch('DB_ADAPTER', nil))
end

def self.postgresql?
ENV['DB_ADAPTER'] == 'postgresql' || ENV['DB_ADAPTER'] == 'postgis'
%w[postgresql postgis].include?(ENV.fetch('DB_ADAPTER', nil))
end
end

Expand Down

0 comments on commit dd2dad5

Please sign in to comment.