Skip to content

Commit

Permalink
Fixed some tests and removed a warnign from gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
IainHull committed Oct 22, 2013
1 parent 0fe63ee commit 85121b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Expand Up @@ -17,9 +17,7 @@ repositories {
}
}

dependencies {
scalaTools "org.scala-lang:scala-compiler:${scalaVersion}.0"

dependencies {
compile "org.scala-lang:scala-library:${scalaVersion}.0"
compile "com.sun.jersey:jersey-core:1.+"
compile "com.sun.jersey:jersey-client:1.+"
Expand Down
8 changes: 4 additions & 4 deletions src/test/scala/org/iainhull/resttest/DslSpec.scala
Expand Up @@ -128,7 +128,7 @@ class DslSpec extends FlatSpec with ShouldMatchers {

val e = evaluating { GET asserting (StatusCode === Status.Created) } should produce[AssertionError]
driver.lastRequest should have('method(GET), 'url(new URI("http://api.rest.org/person/")))
e should have('message("statusCode: 200 did not equal 201"))
e should have('message("StatusCode: 200 did not equal 201"))
}
}

Expand All @@ -140,7 +140,7 @@ class DslSpec extends FlatSpec with ShouldMatchers {
GET asserting (Header("X-Person-Id") !== "999")

val e = evaluating { GET asserting (StatusCode !== Status.OK) } should produce[AssertionError]
e should have('message("statusCode: 200 did equal 200"))
e should have('message("StatusCode: 200 did equal 200"))
}
}

Expand All @@ -150,7 +150,7 @@ class DslSpec extends FlatSpec with ShouldMatchers {
driver.lastRequest should have('method(GET), 'url(new URI("http://api.rest.org/person/")))

val e = evaluating { GET asserting (StatusCode in (Status.Created, Status.Accepted)) } should produce[AssertionError]
e should have('message("statusCode: 200 was not in (201, 202)"))
e should have('message("StatusCode: 200 was not in (201, 202)"))
}
}

Expand All @@ -163,7 +163,7 @@ class DslSpec extends FlatSpec with ShouldMatchers {

val e = evaluating { GET asserting (StatusCode > 999) } should produce[AssertionError]
driver.lastRequest should have('method(GET), 'url(new URI("http://api.rest.org/person/")))
e should have('message("statusCode: 200 was not greater than 999"))
e should have('message("StatusCode: 200 was not greater than 999"))
}
}

Expand Down

0 comments on commit 85121b9

Please sign in to comment.