Permalink
Browse files

Don't accidentally eat the body

  • Loading branch information...
David Kowis
David Kowis committed Nov 20, 2013
1 parent 34b285c commit f8f04a0783cf793728e48aec1ef1ff9659a001a7
@@ -50,7 +50,7 @@ class CustomMatcherSpec extends Specification {
//Will run this request validation on both requests being matched
//No matter what, either recorded, or sent, I should have a payload of "BUTTS"
//I'm posting "BUTTS" and the recorded interaction should have "BUTTS"
- if(r.bodyAsText.input.text != "BUTTS" ){
+ if(!r.hasBody() ){
println("REQUEST BODY WASNT THERE!!!")
}
}

0 comments on commit f8f04a0

Please sign in to comment.