You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class CompanySpec extends PlaySpecification with EmbedConnection {
"Company" should {
"save Company to mongo" in new WithEmbededMongo {
val user = "[email protected]"
CompanyDao.save(Company(
user=user,
name="first last",
domain="mytest.com",
linkedinUrl=linkedinUrl))
val co = CompanyDao.findByUser(user)
(co.isDefined must equalTo(true)) and
(co.get.time must equalTo(1))
}
}
}
abstract class WithEmbededMongo extends WithApplication(FakeApplication(
additionalConfiguration = Map(
"mongodb.default.uri" -> "mongodb://localhost:12345/prtest"
)
)) {
override def around[T: AsResult](t: => T): Result = super.around {
t
}
}
I got exceptions like this:
class CompanySpec inherits conflicting members:
[error] method textFragment in trait TextDsl of type (s: String)CompanySpec.this.textFragment and
[error] method textFragment in trait FragmentsBuilder of type (s: String)org.specs2.specification.FragmentsFragment
[error] (Note: this can be resolved by declaring an override in class CompanySpec.);
[error] other members with override errors are: title, tag, section, xtag, xsection
[error] class CompanySpec extends PlaySpecification with EmbedConnection {
The text was updated successfully, but these errors were encountered:
However, I wonder if it could be related with the version of EmbbedMongo the library depends on. (Which is probably quite old)
I know someone is preparing a Pull Request to update it. Maybe it's worth waiting for that?
This is my test case
I got exceptions like this:
The text was updated successfully, but these errors were encountered: