Skip to content

Commit e969c05

Browse files
committed
Fix broken test in GitHubEventSpec
> testOnly codecheck.github.events.GitHubEventSpec [error] Some(Repository) was not an instance of Repository, but an [error] instance of scala.Some
1 parent ae95369 commit e969c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/events/GitHubEventSpec.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class GitHubEventSpec extends FunSpec with Matchers with Inside
176176
head.user shouldBe a [models.User]
177177
}
178178
it("should have a repo") {
179-
head.repo shouldBe a [models.Repository]
179+
head.repo.get shouldBe a [models.Repository]
180180
}
181181
}
182182
it("should have a base") {
@@ -254,7 +254,7 @@ class GitHubEventSpec extends FunSpec with Matchers with Inside
254254
head.user shouldBe a [models.User]
255255
}
256256
it("should have a repo") {
257-
head.repo shouldBe a [models.Repository]
257+
head.repo.get shouldBe a [models.Repository]
258258
}
259259
}
260260
it("should have a base") {

0 commit comments

Comments
 (0)