Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a workaround for failed test locating
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/test/scala/org/scalatest/bridges/ScalaTestBridgeTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.scalatest.bridges | ||
|
||
import org.specs2.mutable._ | ||
import org.scalatest.WrapWith | ||
import org.scalatest.specs2.Spec2Runner | ||
import org.scalatest.ScalaTestBridge | ||
import org.scalatest.events.IndentedText | ||
|
||
@WrapWith(classOf[Spec2Runner]) | ||
class ScalaTestBridgeTest extends Specification { | ||
"The getIndentedText()" should { | ||
"work properly if picture is disabled" in { | ||
"not indent text at level 0" in { | ||
ScalaTestBridge.getIndentedText("a", 0, false) must have be_== (IndentedText("a", "a", 0)) | ||
} | ||
|
||
"indent text at level 1" in { | ||
ScalaTestBridge.getIndentedText("a", 1, false) must have be_== (IndentedText(" a", "a", 1)) | ||
} | ||
} | ||
|
||
"work properly if picture is enabled" in { | ||
"not indent text at level 0" in { | ||
ScalaTestBridge.getIndentedText("a", 0, true) must have be_== (IndentedText("a", "a", 0)) | ||
} | ||
|
||
"indent text at level 1" in { | ||
ScalaTestBridge.getIndentedText("a", 1, true) must have be_== (IndentedText(" a", "a", 1)) | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/test/scala/org/scalatest/bridges/Specs2BridgeTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.scalatest.bridges | ||
|
||
import org.specs2.mutable._ | ||
import org.scalatest.WrapWith | ||
import org.scalatest.specs2.Spec2Runner | ||
import org.scalatest.events.IndentedText | ||
import org.specs2.Specs2Bridge | ||
|
||
@WrapWith(classOf[Spec2Runner]) | ||
class Specs2BridgeTest extends Specification { | ||
// "The ()" should { | ||
// "" in { | ||
// Specs2Bridge. must have be_==(IndentedText("a", "a", 0)) | ||
// } | ||
// "not awaken Musta-Krakish at a Deathklok concert" in { | ||
// success | ||
// } | ||
// } | ||
} |