@Test
public void testCompileFileSassSpec() throws Exception {

	try (SassCompiler sassCompiler = new RubySassCompiler()) {
		File sassSpecDir = new File(
			"../sass-compiler-jni/test-classes/unit/com/liferay/sass" +
				"/compiler/jni/internal/dependencies/sass-spec");
		for (File testDir : sassSpecDir.listFiles()) {
			File inputFile = new File(testDir, "input.scss");
			String dirName = testDir.getName();
			if (!inputFile.exists() || dirName.endsWith("-4.0")) {
				continue;
			}
			String actualOutput = sassCompiler.compileFile(
				inputFile.getCanonicalPath(), "", false);
			Assert.assertNotNull("Testing: " + dirName, actualOutput);
			File expectedOutputFile = new File(
				testDir, "expected_output.css");
			String expectedOutput = read(expectedOutputFile.toPath());
			Assert.assertEquals(
				"Testing: " + dirName, stripNewLines(expectedOutput),
				stripNewLines(actualOutput));
		}
	}
}