File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def setup
78
78
end
79
79
80
80
def using_sprockets4?
81
- Gem ::Version . new ( Sprockets ::VERSION ) >= Gem ::Version . new ( '4.0.0 ' )
81
+ Gem ::Version . new ( Sprockets ::VERSION ) >= Gem ::Version . new ( '4.x ' )
82
82
end
83
83
84
84
def test_truth
@@ -827,9 +827,15 @@ def test_index_files
827
827
end
828
828
829
829
class PrecompiledDebugAssetHelperTest < PrecompiledAssetHelperTest
830
+
831
+ # Re-run all PrecompiledAssetHelperTest with a different setup
830
832
def setup
831
833
super
832
834
@view . debug_assets = true
833
- @bundle_js_name = '/assets/bundle/index.self.js?body=1'
835
+ if using_sprockets4?
836
+ @bundle_js_name = '/assets/bundle.debug.js'
837
+ else
838
+ @bundle_js_name = '/assets/bundle/index.self.js?body=1'
839
+ end
834
840
end
835
841
end
You can’t perform that action at this time.
0 commit comments