Skip to content

Commit

Permalink
add test for handling of frozen strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bolandrm committed Sep 26, 2018
1 parent 0e0498d commit c2d6de7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/engine_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ def test_empty_template_encoding_matches_input
assert_equal input.encoding, output.encoding
end

def test_handling_of_frozen_strings
output = Engine.new("body { background-color: red; }".freeze).render
assert_equal output, "body {\n background-color: red; }\n"
end

def test_import_plain_css
temp_file("test.css", ".something{color: red}")
expected_output = <<-CSS
Expand Down

0 comments on commit c2d6de7

Please sign in to comment.