test/engine_test.rb in sassc-1.10.1 vs test/engine_test.rb in sassc-1.11.0

- old
+ new

@@ -152,19 +152,35 @@ \t], \t"sourcesContent": [ \t\t"@import 'admin/text-color';\\n\\np {\\n padding: 20px;\\n}\\n", \t\t"p {\\n color: red;\\n}\\n" \t], -\t"mappings": "ACAA,AAAA,CAAC,CAAC;EACA,KAAK,EAAE,GAAI,GACZ;;ADAD,AAAA,CAAC,CAAC;EACA,OAAO,EAAE,IAAK,GACf", -\t"names": [] +\t"names": [], +\t"mappings": "ACAA,AAAA,CAAC,CAAC;EACA,KAAK,EAAE,GAAG,GACX;;ADAD,AAAA,CAAC,CAAC;EACA,OAAO,EAAE,IAAI,GACd" } MAP end def test_no_source_map engine = Engine.new("$size: 30px;") engine.render assert_raises(NotRenderedError) { engine.source_map } + end + + def test_omit_source_map_url + temp_file('style.scss', <<SCSS) +p { + padding: 20px; +} +SCSS + engine = Engine.new(File.read('style.scss'), { + source_map_file: "style.scss.map", + source_map_contents: true, + omit_source_map_url: true + }) + output = engine.render + + refute_match /sourceMappingURL/, output end def test_load_paths temp_dir("included_1") temp_dir("included_2")