Skip to content

Commit

Permalink
Improve test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 7, 2025
1 parent 654852c commit 53456f2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions spec/integration/container/plugins/bootsnap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@
end
end

let(:cache_dir) do
system.root.join("tmp/cache")
end

let(:bootsnap_cache_file) do
system.root.join("tmp/cache/bootsnap")
cache_dir.join("bootsnap")
end

before do
FileUtils.rm_r(system.root.join("tmp/cache"))
FileUtils.rm_r(cache_dir)
FileUtils.mkdir_p(cache_dir)
end

after do
FileUtils.rm_r(system.root.join("tmp/cache"))
FileUtils.rm_r(cache_dir)
end

describe ".require_from_root" do
Expand Down

0 comments on commit 53456f2

Please sign in to comment.