Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed Oct 7, 2016
1 parent 1fe65c4 commit 6c8fc0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/scala/sangria/streaming/MonixIntegrationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MonixIntegrationSpec extends WordSpec with Matchers {

"Monix Integration" should {
"support itself" in {
impl.supported(new monix.ObservableSubscriptionStream) should be (true)
impl.supported(monix.observableSubscriptionStream) should be (true)
}

"map" in {
Expand All @@ -39,6 +39,10 @@ class MonixIntegrationSpec extends WordSpec with Matchers {
res(impl.first(Observable(1, 2, 3))) should be (1)
}

"first throws error on empty" in {
an [IllegalStateException] should be thrownBy res(impl.first(Observable()))
}

"failed" in {
an [IllegalStateException] should be thrownBy res(impl.failed(new IllegalStateException("foo")))
}
Expand Down

0 comments on commit 6c8fc0b

Please sign in to comment.