Skip to content

Commit 67147df

Browse files
Add failing test for css imports
1 parent da758b1 commit 67147df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/engine_test.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,16 @@ def test_empty_template_encoding_matches_input
267267
output = Engine.new(input).render
268268
assert_equal input.encoding, output.encoding
269269
end
270+
271+
def test_import_plain_css
272+
temp_file("test.css", ".something{color: red}")
273+
expected_output = <<-CSS
274+
.something {
275+
color: red; }
276+
CSS
277+
278+
output = Engine.new("@import 'test'").render
279+
assert_equal expected_output, output
280+
end
270281
end
271282
end

0 commit comments

Comments
 (0)