зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-07 20:15:51 +03:00
test: Improve test suite setup
Этот коммит содержится в:
@@ -1,26 +1,23 @@
|
||||
require_relative 'boot'
|
||||
|
||||
require 'rails/all'
|
||||
require 'sprockets/railtie'
|
||||
|
||||
Bundler.require(*Rails.groups)
|
||||
|
||||
module Dummy
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 6.0 if Rails::VERSION::MAJOR == 6
|
||||
config.load_defaults Rails::VERSION::STRING.to_f
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration can go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded after loading
|
||||
# the framework and any gems in your application.
|
||||
config.active_support.deprecation = :raise
|
||||
|
||||
###
|
||||
if Gem::Version.new(Rails.version) < Gem::Version.new('7.1')
|
||||
config.active_record.legacy_connection_handling = false
|
||||
end
|
||||
|
||||
config.active_record.legacy_connection_handling = false if Gem::Version.new(Rails.version) < Gem::Version.new('7.1')
|
||||
|
||||
config.before_configuration do
|
||||
ActiveSupport::Cache.format_version = 7.0 if Gem::Version.new(Rails.version) > Gem::Version.new('7.0')
|
||||
if Gem::Version.new(Rails.version) > Gem::Version.new('7.0')
|
||||
config.before_configuration do
|
||||
ActiveSupport::Cache.format_version = 7.0
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ default: &default
|
||||
development:
|
||||
<<: *default
|
||||
database: db/development.sqlite3
|
||||
schema_dump: schema_development.rb
|
||||
schema_dump: schema-dev.rb
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
ActiveSupport::Reloader.to_prepare do
|
||||
Rails.application.reloader.to_prepare do
|
||||
ActiveStorage::Attachment.class_eval do
|
||||
def self.ransackable_attributes(auth_object = nil)
|
||||
%w[blob_id created_at id name record_id record_type]
|
||||
class << self
|
||||
def ransackable_attributes(auth_object = nil)
|
||||
%w[blob_id created_at id name record_id record_type]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Ссылка в новой задаче
Block a user