A big hello.
I would like to test a controller that directly renders some JSON output (by
using "render :json => @entity_names"). For that task I tried in my spec file
"response.should have_text('["enim", "enita"]')". Unfortunately I always get
that error:
Failure/Error: response.should have_t
On Oct 2, 2010, at 2:27 PM, Kai Schlamp wrote:
> A big hello.
>
> I would like to test a controller that directly renders some JSON output (by
> using "render :json => @entity_names"). For that task I tried in my spec file
> "response.should have_text('["enim", "enita"]')". Unfortunately I alwa