From 9c8fdbad7c22805a6b6eda88997ec8a73ab46f76 Mon Sep 17 00:00:00 2001 From: Michael Wizner Date: Fri, 28 Sep 2018 21:39:24 +0100 Subject: [PATCH] Updated tests. --- .../scala/scapegoat/ScapegoatReportParserSpec.scala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/test/scala/com/mwz/sonar/scala/scapegoat/ScapegoatReportParserSpec.scala b/src/test/scala/com/mwz/sonar/scala/scapegoat/ScapegoatReportParserSpec.scala index f9b56689..497a627c 100644 --- a/src/test/scala/com/mwz/sonar/scala/scapegoat/ScapegoatReportParserSpec.scala +++ b/src/test/scala/com/mwz/sonar/scala/scapegoat/ScapegoatReportParserSpec.scala @@ -49,14 +49,15 @@ class ScapegoatReportParserSpec extends FlatSpec with Matchers with WithFile { linuxPath shouldBe file.toString } - it should "handle correctly multiple dots in path" in withFile(cwd.resolve("example.file.scala")) { file => - val scapegoatPath = file.toString.replace("/", ".") - val linuxPath = scapegoatReportParser.replaceAllDotsButLastWithSlashes(scapegoatPath) + it should "handle correctly multiple dots in the path" in withFile(cwd.resolve("example..file.scala")) { + file => + val scapegoatPath = file.toString.replace("/", ".") + val linuxPath = scapegoatReportParser.replaceAllDotsButLastWithSlashes(scapegoatPath) - linuxPath shouldBe file.toString + linuxPath shouldBe file.toString } - it should "be able to parse an empty report" in { + "ScapegoatReportParser" should "be able to parse an empty report" in { val scapegoatReportPath = Paths.get("src", "test", "resources", "scapegoat", "no-warnings.xml") val scapegoatWarnings = scapegoatReportParser.parse(scapegoatReportPath)