From 67147df940033aa22f857aa8998065be5582c4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 3 Jul 2018 13:01:31 -0300 Subject: [PATCH 1/2] Add failing test for css imports --- test/engine_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/engine_test.rb b/test/engine_test.rb index 0e47256a..e8afdf64 100644 --- a/test/engine_test.rb +++ b/test/engine_test.rb @@ -267,5 +267,16 @@ def test_empty_template_encoding_matches_input output = Engine.new(input).render assert_equal input.encoding, output.encoding end + + def test_import_plain_css + temp_file("test.css", ".something{color: red}") + expected_output = <<-CSS +.something { + color: red; } + CSS + + output = Engine.new("@import 'test'").render + assert_equal expected_output, output + end end end From c948212b38136a381f5cb0311ef29cf1321a6ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 3 Jul 2018 13:15:17 -0300 Subject: [PATCH 2/2] Downgrade to 3.5.2 to fix css imports --- ext/libsass | 2 +- test/native_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/libsass b/ext/libsass index 1e52b743..9cfe0df9 160000 --- a/ext/libsass +++ b/ext/libsass @@ -1 +1 @@ -Subproject commit 1e52b74306b7d73a617396c912ca436dc55fd4d8 +Subproject commit 9cfe0df975945325e05d6dd39ee98224898d9a79 diff --git a/test/native_test.rb b/test/native_test.rb index 25cd894f..ad0528ad 100644 --- a/test/native_test.rb +++ b/test/native_test.rb @@ -9,7 +9,7 @@ module NativeTest class General < MiniTest::Test def test_it_reports_the_libsass_version - assert_equal "3.5.4", Native.version + assert_equal "3.5.2", Native.version end end