Skip to content

Commit

Permalink
Update dummy app config
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Oct 5, 2023
1 parent 2d064de commit 1ffd11f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions spec/config_rspec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Configure RSpec
RSpec.configure do |config|
# Use DB agnostic schema by default
load Rails.root.join('db', 'schema.rb').to_s
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@

module Dummy
class Application < Rails::Application
config.load_defaults Rails::VERSION::STRING.to_f
end
end
1 change: 1 addition & 0 deletions spec/dummy/config/database.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
development:
adapter: sqlite3
database: db/development.sqlite3
Expand Down
4 changes: 3 additions & 1 deletion spec/dummy/config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

Expand All @@ -16,7 +18,7 @@
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.headers = {'Cache-Control' => 'public, max-age=172800'}
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=172800' }
else
config.action_controller.perform_caching = false
config.cache_store = :null_store
Expand Down
6 changes: 4 additions & 2 deletions spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

Expand All @@ -15,7 +17,7 @@
# Configure public file server for tests with Cache-Control for performance.
if config.respond_to?(:public_file_server)
config.public_file_server.enabled = true
config.public_file_server.headers = {'Cache-Control' => 'public, max-age=3600'}
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
else
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'
Expand All @@ -26,7 +28,7 @@
config.action_controller.perform_caching = false

# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# config.action_dispatch.show_exceptions = false

# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
Expand Down
Empty file.
3 changes: 0 additions & 3 deletions spec/dummy/config/initializers/framework_default.rb

This file was deleted.

2 changes: 2 additions & 0 deletions spec/dummy/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

Rails.application.routes.draw do
end
1 change: 1 addition & 0 deletions spec/dummy/config/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
development:
secret_key_base: 4f652b992e258c03478b463380b23bca70cb9758a3b26c6dd3f5c31a46fd042548ff0176cc6ad3a5e1077c675c6f8bb305a14121ca5c68568318461507d2c94b

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'simplecov'

# Start SimpleCov
Expand Down

0 comments on commit 1ffd11f

Please sign in to comment.