Revert "Avoid chdir error in bin/setup test on Ruby master"

This reverts commit a484bd807e.
This commit is contained in:
Yasuo Honda 2020-12-26 07:06:40 +09:00
parent 3cafe4ad2f
commit fd057e1195
1 changed files with 2 additions and 3 deletions

View File

@ -1,11 +1,10 @@
# frozen_string_literal: true
require "isolation/abstract_unit"
require "chdir_helpers"
module ApplicationTests
class BinSetupTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation, ChdirHelpers
include ActiveSupport::Testing::Isolation
setup :build_app
teardown :teardown_app
@ -29,7 +28,7 @@ module ApplicationTests
end
def test_bin_setup_output
chdir(app_path) do
Dir.chdir(app_path) do
# SQLite3 seems to auto-create the database on first checkout.
rails "db:system:change", "--to=postgresql"
rails "db:drop", allow_failure: true