Skip to content

Commit 9b43bbe

Browse files
committed
Merge branch '2.x' into scope-alias-error-to-av
2 parents 1f40272 + dc5713b commit 9b43bbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,15 +700,15 @@ def test_ignores_missing_dependencies
700700
assert_includes paths, "missing.css.erb"
701701
end
702702

703-
if Sprockets::VERSION > "3"
703+
if Sprockets::VERSION > "3.1"
704704
def test_asset_path_with_index_requires_exact_logical_path
705705
Sprockets::Rails::Helper.raise_runtime_errors = true
706-
Sprockets::Rails::Helper.precompile = ["bundle.js"]
706+
Sprockets::Rails::Helper.precompile = ["bundle/index.js"]
707707

708-
assert @view.asset_path("bundle.js")
708+
assert @view.asset_path("bundle/index.js")
709709

710710
assert_raises(Sprockets::Rails::Helper::AssetAliasUsed) do
711-
assert @view.asset_path("bundle/index.js")
711+
assert @view.asset_path("bundle.js")
712712
end
713713
end
714714

0 commit comments

Comments
 (0)