Closed rmorrise closed 7 years ago
Erg... looks like a case of stale documentation examples. Sorry about that. The User Guide Getting Started example works now. Thanks for pointing out the bad code.
One thing to consider when using Grails is that if you are using the Undertow embedded server, you may have version collisions with the version used in Ersatz - if you run into that issue, use the "safe" (shadow) jar (see Shadow Jar in the User Guide).
I am going to close this issue. If you feel that there is still a problem, please feel free to re-open the issue.
This tool looks awesome! But unfortunately, I can't get it to work at all.
In the Getting Started section of the guide, the sample Specification is full of typos. I corrected a few of them:
...but when I run this spec, I get an error:
I tried changing the URLs to be hard-coded:
get('http://test/say/hello')
String result = "http://test/say/hello?name=Ersatz".toURL().text
...but then I get a socket error, which suggests to me that Ersatz is not running properly:
Here is the page where I got this sample spec: http://stehno.com/ersatz/asciidoc/html5/#_getting_started
I am using Grails 3.3.0, following this guide: http://guides.grails.org/grails-mock-http-server/guide/index.html#ersatz