Skip to content

Commit

Permalink
Don't run bootsnap test under ruby 3.4
Browse files Browse the repository at this point in the history
I don't know why it fails on CI but unfortunately I don't have time to investigate this
  • Loading branch information
flash-gordon committed Jan 7, 2025
1 parent af012b1 commit 30fcff0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/integration/container/plugins/bootsnap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@
end

describe ".require_from_root" do
it "loads file" do
system.require_from_root("lib/test/models")
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.4.0")
it "loads file" do
system.require_from_root("lib/test/models")

expect(Object.const_defined?("Test::Models")).to be(true)
expect(Object.const_defined?("Test::Models")).to be(true)

expect(bootsnap_cache_file.exist?).to be(true)
expect(bootsnap_cache_file.exist?).to be(true)
end
end
end
end

0 comments on commit 30fcff0

Please sign in to comment.