Skip to content

Commit

Permalink
Bump version of Scala, sbt and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
rucek committed Aug 22, 2021
1 parent 2bcbdab commit 29a17d2
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 16 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name := "scalatest-matchers"

version := "0.1"

scalaVersion := "2.12.8"
scalaVersion := "2.13.6"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5",
"com.ironcorelabs" %% "cats-scalatest" % "2.4.0"
"org.scalatest" %% "scalatest" % "3.2.9",
"com.ironcorelabs" %% "cats-scalatest" % "3.1.1"
).map(_ % Test)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.2.8
sbt.version = 1.5.5
5 changes: 3 additions & 2 deletions src/test/scala/org/kunicki/scalatest/BaseSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.kunicki.scalatest

import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

trait BaseSpec extends FlatSpec with Matchers
trait BaseSpec extends AnyFlatSpec with Matchers
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ class OptionHasValue extends BaseSpec with OptionValues {
class EitherHasValue extends BaseSpec with EitherValues {

it should "check if an Either is right with get" in {
either.right.get shouldBe 1
either.value shouldBe 1
}

//region either value
it should "check if an Either is right with value" in {
either.right.value shouldBe 1
either.value shouldBe 1
}
//endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package org.kunicki.scalatest.examples

import org.kunicki.scalatest.BaseSpec
import org.scalatest.concurrent.{IntegrationPatience, ScalaFutures}
import org.scalatest.{AsyncFlatSpec, Matchers}
import org.scalatest.flatspec.AsyncFlatSpec
import org.scalatest.matchers.should.Matchers

import scala.concurrent.duration.Duration
import scala.concurrent.{Await, ExecutionContext, Future}
Expand Down
3 changes: 2 additions & 1 deletion src/test/scala/org/kunicki/scalatest/fixtures/Goodies.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.kunicki.scalatest.fixtures

import org.scalatest.OptionValues
import org.scalatest.concurrent.{Eventually, ScalaFutures}
import org.scalatest.{Matchers, OptionValues}
import org.scalatest.matchers.should.Matchers

trait Goodies extends Matchers with Eventually with OptionValues with ScalaFutures
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.kunicki.scalatest.fixtures

import org.scalatest.FlatSpec
import org.scalatest.flatspec.AnyFlatSpec

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future

class NotificationServiceCustomMethodSpec extends FlatSpec with Goodies {
class NotificationServiceCustomMethodSpec extends AnyFlatSpec with Goodies {

case class Fixture(user: User, notificationService: NotificationService) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package org.kunicki.scalatest.fixtures

import org.scalatest.{Outcome, fixture}
import org.scalatest.Outcome
import org.scalatest.flatspec.FixtureAnyFlatSpec

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future

class NotificationServiceFixtureSpec extends fixture.FlatSpec with Goodies {
class NotificationServiceFixtureSpec extends FixtureAnyFlatSpec with Goodies {

case class FixtureParam(user: User, notificationService: NotificationService) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.kunicki.scalatest.fixtures

import org.scalatest.FlatSpec
import org.scalatest.flatspec.AnyFlatSpec

import scala.concurrent.ExecutionContext.Implicits.global

class NotificationServiceSpec extends FlatSpec with Goodies {
class NotificationServiceSpec extends AnyFlatSpec with Goodies {

it should "create a notification" in {
// given
Expand Down

0 comments on commit 29a17d2

Please sign in to comment.