File tree 3 files changed +14
-4
lines changed
spec/integration/container/plugins
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ Gemfile.lock
41
41
42
42
# # Tests
43
43
/spec /examples.txt
44
+ /spec /fixtures /test /tmp /cache
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ module Plugins
6
6
module Bootsnap
7
7
DEFAULT_OPTIONS = {
8
8
load_path_cache : true ,
9
- disable_trace : true ,
10
9
compile_cache_iseq : true ,
11
10
compile_cache_yaml : true ,
12
11
autoload_paths_cache : false
@@ -32,7 +31,7 @@ def self.dependencies
32
31
def setup_bootsnap
33
32
return unless bootsnap_available?
34
33
35
- ::Bootsnap . setup ( config . bootsnap . merge ( cache_dir : root . join ( "tmp/cache" ) . to_s ) )
34
+ ::Bootsnap . setup ( ** config . bootsnap , cache_dir : root . join ( "tmp/cache" ) . to_s )
36
35
end
37
36
38
37
# @api private
Original file line number Diff line number Diff line change 8
8
configure do |config |
9
9
config . root = SPEC_ROOT . join ( "fixtures/test" )
10
10
config . env = :development
11
+ config . bootsnap = {
12
+ load_path_cache : false ,
13
+ compile_cache_iseq : true ,
14
+ compile_cache_yaml : true ,
15
+ autoload_paths_cache : false
16
+ }
11
17
end
12
18
end
13
19
end
14
20
15
21
let ( :bootsnap_cache_file ) do
16
- system . root . join ( "tmp/cache/bootsnap-load-path-cache" )
22
+ system . root . join ( "tmp/cache/bootsnap-compile-cache" )
23
+ end
24
+
25
+ before do
26
+ FileUtils . rm_r ( system . root . join ( "tmp/cache" ) )
17
27
end
18
28
19
29
after do
20
30
FileUtils . rm_r ( system . root . join ( "tmp/cache" ) )
21
31
end
22
32
23
33
describe ".require_from_root" do
24
- xit "loads file" do
34
+ it "loads file" do
25
35
system . require_from_root ( "lib/test/models" )
26
36
27
37
expect ( Object . const_defined? ( "Test::Models" ) ) . to be ( true )
You can’t perform that action at this time.
0 commit comments