add tests for the Ruby backend

This commit is contained in:
2026-10-12 08:20:32 +03:00
parent d6efb46f87
commit e612dbfa23
11 changed files with 358 additions and 25 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ require "action_controller/railtie"
# require "action_mailbox/engine"
# require "action_text/engine"
# require "action_view/railtie"
# require "action_cable/engine"
require "action_cable/engine"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
+16 -17
View File
@@ -20,21 +20,20 @@ test:
<<: *default
database: storage/test.sqlite3
# Store production database in the storage/ directory, which by default
# is mounted as a persistent Docker volume in config/deploy.yml.
# PostgreSQL for production.
#
# Configure via DATABASE_URL environment variable:
# postgresql://user:password@host:5432/database
#
# Or via individual variables:
# DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, DB_PORT
#
production:
primary:
<<: *default
database: storage/production.sqlite3
cache:
<<: *default
database: storage/production_cache.sqlite3
migrations_paths: db/cache_migrate
queue:
<<: *default
database: storage/production_queue.sqlite3
migrations_paths: db/queue_migrate
cable:
<<: *default
database: storage/production_cable.sqlite3
migrations_paths: db/cable_migrate
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: <%= ENV["DB_NAME"] %>
username: <%= ENV["DB_USER"] %>
password: <%= ENV["DB_PASSWORD"] %>
host: <%= ENV["DB_HOST"] %>
port: <%= ENV["DB_PORT"] || 5432 %>
+1 -7
View File
@@ -31,13 +31,7 @@ Rails.application.configure do
# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# Set host to be used by links generated in mailer templates.
config.action_mailer.default_url_options = { host: "example.com" }
# Action Mailer is not enabled in this application.
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr