File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 4343 << : *default
4444 compile : true
4545
46- # Compile test packs to a separate directory
47- public_output_path : packs-test
48-
4946production :
5047 << : *default
5148
Original file line number Diff line number Diff line change 33 SimpleCov . start
44end
55
6- DUMMY_LOCATION = if Bundler . locked_gems . specs . map ( &:name ) . include? ( 'webpacker' )
7- 'dummy_webpacker1'
6+ DUMMY_LOCATION = if ( gem_webpack = Bundler . locked_gems . specs . find { |gem_spec | gem_spec . name == 'webpacker' } )
7+ if gem_webpack . version . segments . first == 1
8+ 'dummy_webpacker1'
9+ else #if gem_webpack.version.segments.first == 3
10+ 'dummy_webpacker3'
11+ end
812else
913 'dummy_sprockets'
1014end
2731require "capybara/poltergeist"
2832Dummy ::Application . load_tasks
2933
30-
31-
3234WebpackerHelpers . clear_webpacker_packs
3335
3436Capybara . app = Rails . application
You can’t perform that action at this time.
0 commit comments