[rspec-users] Just upgraded to 1.0.0, should render_text isn't working for me

Pat Maddox pergesu at gmail.com
Mon May 21 02:31:31 EDT 2007


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>

I installed the 1.0.0 rails plugin, and ran script/generate rspec
again.  Any ideas as to what's wrong?

Pat


More information about the rspec-users mailing list