Skip to content

Commit

Permalink
Switch to in-memory db
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Feb 23, 2024
1 parent d81c0a3 commit f21a117
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion test/dummy/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default: &default
adapter: sqlite3
timeout: 5000
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: <%= ENV["DATABASE_URL"] || "db/#{Rails.env}.sqlite3" %>
database: ":memory:"

development:
<<: *default
Expand Down
8 changes: 0 additions & 8 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@
ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__)
require "rails/test_help"

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_paths=)
ActiveSupport::TestCase.fixture_paths = [File.expand_path("fixtures", __dir__)]
ActionDispatch::IntegrationTest.fixture_paths = ActiveSupport::TestCase.fixture_paths
ActiveSupport::TestCase.file_fixture_path = File.expand_path("fixtures", __dir__) + "/files"
ActiveSupport::TestCase.fixtures :all
end

# ActionCable.server.config.logger = Logger.new($stdout) if ENV["VERBOSE"]
#
# module ActionViewTestCaseExtensions
Expand Down

0 comments on commit f21a117

Please sign in to comment.