diff --git a/test/test_source_maps.rb b/test/test_source_maps.rb index 2f58f5283..f7317cf58 100644 --- a/test/test_source_maps.rb +++ b/test/test_source_maps.rb @@ -391,7 +391,7 @@ def setup assert_equal "sass/main.css.map", asset.logical_path assert_equal "application/css-sourcemap+json", asset.content_type assert_equal [ - "file:///#{ fixture_path('source-maps/sass/main.scss').sub(/\A\//, '') }?type=text/scss&pipeline=source" + "file:///#{ fixture_path('source-maps/sass/main.scss').delete_prefix(/\A\//, '') }?type=text/scss&pipeline=source" ], normalize_uris(asset.links) assert map = JSON.parse(asset.source)