[rspec-users] response.should have_text leads to undefined method `has_text?'

2010-10-02 Thread Kai Schlamp
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

Re: [rspec-users] response.should have_text leads to undefined method `has_text?'

2010-10-02 Thread David Chelimsky
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