Skip to content

Commit

Permalink
Update scalatest to 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Scala Steward committed Dec 8, 2019
1 parent df10684 commit 78c9d04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object Dependencies {
def metacp = "org.scalameta" %% "metacp" % scalametaV
def semanticdbPluginLibrary = "org.scalameta" % "semanticdb-scalac-core" % scalametaV cross CrossVersion.full
def scalameta = "org.scalameta" %% "scalameta" % scalametaV
def scalatest = "org.scalatest" %% "scalatest" % "3.0.8"
def scalatest = "org.scalatest" %% "scalatest" % "3.1.0"
def scalacheck = "org.scalacheck" %% "scalacheck" % "1.14.2"

def testsDeps = List(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import java.text.SimpleDateFormat
import java.util.Date
import java.util.TimeZone

import org.scalatest.FunSuiteLike
import org.scalatest.exceptions.TestFailedException
import org.scalatest.funsuite.AnyFunSuiteLike

object DiffAssertions {
def compareContents(original: String, revised: String): String = {
Expand Down Expand Up @@ -34,7 +34,7 @@ object DiffAssertions {
}
}

trait DiffAssertions extends FunSuiteLike {
trait DiffAssertions extends AnyFunSuiteLike {

def assertEqual[A](a: A, b: A): Unit = {
assert(a === b)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package scalafix.testkit

import java.nio.charset.StandardCharsets
import org.scalatest.BeforeAndAfterAll
import org.scalatest.FunSuite
import org.scalatest.exceptions.TestFailedException
import scala.meta._
import scala.meta.internal.io.FileIO
Expand All @@ -14,12 +13,13 @@ import scalafix.internal.testkit.EndOfLineAssertExtractor
import scalafix.internal.testkit.MultiLineAssertExtractor
import scalafix.v0.SemanticdbIndex
import java.nio.file.Files
import org.scalatest.funsuite.AnyFunSuite

/** Construct a test suite for running semantic Scalafix rules. */
abstract class SemanticRuleSuite(
val props: TestkitProperties,
val isSaveExpect: Boolean
) extends FunSuite
) extends AnyFunSuite
with DiffAssertions
with BeforeAndAfterAll { self =>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package scalafix.testkit

import org.scalatest.FunSuiteLike
import org.scalatest.Tag
import scala.meta._
import scalafix.syntax._
import scalafix.v0._
import org.scalatest.funsuite.AnyFunSuiteLike

/** Utility to unit test syntactic rules
*
* @param rule the default rule to use from `check`/`checkDiff`.
*/
class SyntacticRuleSuite(rule: Rule = Rule.empty)
extends FunSuiteLike
extends AnyFunSuiteLike
with DiffAssertions {

def check(name: String, original: String, expected: String): Unit = {
Expand Down

0 comments on commit 78c9d04

Please sign in to comment.