[rspec-users] Just upgraded to 1.0.0, should render_text isn't working for me
David Chelimsky
dchelimsky at gmail.com
Mon May 21 04:31:28 EDT 2007
On 5/20/07, Pat Maddox <pergesu at gmail.com> wrote:
> I finally got around to upgrading from 0.8.2 (!!). I had a spec which
> looked like
>
> specify "should render abc123" do
> controller.should_render :text => "abc123"
> get :key
> end
>
> With 1.0.0, the new spec is
>
> it "should render abc123" do
> get :key
> response.should render_text("abc123")
> end
>
> However it doesn't work, giving me the error:
> undefined method `render_text' for #<#<Class:0x32ebdac>:0x381a454>
Try have_text instead of render_text.
Cheers,
David
>
> I installed the 1.0.0 rails plugin, and ran script/generate rspec
> again. Any ideas as to what's wrong?
>
> Pat
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
More information about the rspec-users
mailing list