spec/support/doorkeeper_rspec.rb in doorkeeper-5.1.0.rc2 vs spec/support/doorkeeper_rspec.rb in doorkeeper-5.1.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Doorkeeper
class RSpec
# Print's useful information about env: Ruby / Rails versions,
# Doorkeeper configuration, etc.
def self.print_configuration_info
@@ -11,10 +13,10 @@
INFO
end
# Tries to find ORM from the Gemfile used to run test suite
def self.detect_orm
- orm = (ENV['BUNDLE_GEMFILE'] || '').match(/Gemfile\.(.+)\.rb/)
+ orm = (ENV["BUNDLE_GEMFILE"] || "").match(/Gemfile\.(.+)\.rb/)
(orm && orm[1] || :active_record).to_sym
end
end
end