Skip to content

Commit

Permalink
Fix up deprecation warnings in ExtractorsSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
IainHull committed May 31, 2014
1 parent a6fe77b commit 87a3f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/scala/org/iainhull/resttest/ExtractorsSpec.scala
Expand Up @@ -33,7 +33,7 @@ class ExtractorsSpec extends FlatSpec with Matchers {
returning(Header("SimpleHeader")) should be("SimpleValue")
returning(Header("MultiHeader")) should be("Value1,Value2")

evaluating { returning(Header("NotAHeader")) } should produce [NoSuchElementException]
an [NoSuchElementException] should be thrownBy { returning(Header("NotAHeader")) }
}

"Header.asOption" should "return the responses header value as an Option[List[String]]" in {
Expand All @@ -48,6 +48,6 @@ class ExtractorsSpec extends FlatSpec with Matchers {
returning(Header("SimpleHeader").asList) should be(List("SimpleValue"))
returning(Header("MultiHeader").asList) should be(List("Value1","Value2"))

evaluating { returning(Header("NotAHeader").asList) } should produce [NoSuchElementException]
an [NoSuchElementException] should be thrownBy { returning(Header("NotAHeader").asList) }
}
}

0 comments on commit 87a3f70

Please sign in to comment.