Skip to content

Commit dc5713b

Browse files
committed
Merge pull request #248 from rails/fix-2-x-build
Fix 2.x build
2 parents 8ca34d1 + 1fe9b4d commit dc5713b

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)