Skip to content

Commit c2d6de7

Browse files
committed
add test for handling of frozen strings
1 parent 0e0498d commit c2d6de7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/engine_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ def test_empty_template_encoding_matches_input
270270
assert_equal input.encoding, output.encoding
271271
end
272272

273+
def test_handling_of_frozen_strings
274+
output = Engine.new("body { background-color: red; }".freeze).render
275+
assert_equal output, "body {\n background-color: red; }\n"
276+
end
277+
273278
def test_import_plain_css
274279
temp_file("test.css", ".something{color: red}")
275280
expected_output = <<-CSS

0 commit comments

Comments
 (0)