Skip to content

Commit 266b935

Browse files
committed
precompile ignore features directories (cucumber)
1 parent 457adc5 commit 266b935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootsnap/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def precompile_command(*sources)
6464
# So we look at the gem root.
6565
# Similarly, gems that include Rails engines generally file Ruby files in `app/`.
6666
# However some gems embed their tests, they're very unlikely to be loaded, so not worth precompiling.
67-
gem_exclude = Regexp.union([exclude, "/spec/", "/test/"].compact)
67+
gem_exclude = Regexp.union([exclude, "/spec/", "/test/", "/features/"].compact)
6868

6969
gem_pattern = %r{^#{Regexp.escape(Bundler.bundle_path.to_s)}/?(?:bundler/)?gems/[^/]+}
7070
gem_paths = $LOAD_PATH.map { |p| p[gem_pattern] || p }.uniq

0 commit comments

Comments
 (0)