test/engine_test.rb in sassc-1.0.0 vs test/engine_test.rb in sassc-1.1.0
- old
+ new
@@ -115,7 +115,14 @@
assert_equal css, Engine.new(sass, syntax: :sass).render
assert_equal css, Engine.new(sass, syntax: "sass").render
assert_raises(SyntaxError) { Engine.new(sass).render }
end
+
+ def test_encoding_matches_input
+ input = "$size: 30px;"
+ input.force_encoding("UTF-8")
+ output = Engine.new(input).render
+ assert_equal input.encoding, output.encoding
+ end
end
end