From 7d22cd2cd73a29e54a96197d88e6ed657e100be9 Mon Sep 17 00:00:00 2001 From: sebi Date: Tue, 27 Aug 2024 18:26:29 +0100 Subject: [PATCH] create tmp/ferrum in ruby instead outside --- .github/workflows/tests.yml | 4 +--- spec/spec_helper.rb | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ef5384a..ae7f35eb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,9 +32,7 @@ jobs: chrome-version: stable - name: Run tests - run: | - mkdir -p /tmp/ferrum - bundle exec rake + run: bundle exec rake - name: Archive artifacts uses: actions/upload-artifact@v4 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9f94527b..9d2c2435 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -27,6 +27,8 @@ config.include_context "Global helpers" config.before(:suite) do + FileUtils.rm_rf("/tmp/ferrum") + FileUtils.mkdir_p("/tmp/ferrum") @server = Ferrum::Server.boot end