[rspec-users] rSpec on Rails 1.2?

Lourens Naude lourens at rentacarhire.com
Fri Nov 24 14:14:43 EST 2006


Hi,

I believe the response object doesn't respond to render? ... you need  
to use the controller instance as the receiver.

- Lourens

On 2006/11/24, at 07:53, Marcus Roberts wrote:

> This blog seems to have quite a bit of information about running with
> edge Rails:
>
> http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with-
> rspec-controller-tests
>
> which I've found useful.
>
> I'm running rspec 0.7.3 and the trunk of the rails plugin and most of
> my controller specs pass, but I still get
>
> undefined method `render?' for #<ActionController::TestResponse:
> 0x28886c4>
>
> errors for specs such as
>
> specify "should render show.rhtml" do
>      response.should_render :show
>    end
>
>
> Marcus
>
> On 24 Nov 2006, at 07:11, s.ross wrote:
>
>> I just updated my Rails install to the most current Edge and my
>> controller specs fail:
>>
>> 1)
>> TypeError in 'The User Controller should be a user controller'
>> can't convert nil into String
>>
>> Each spec fails the same way.
>>
>> <context string> <spec string>
>> can't convert nil into String
>>
>> Any ideas what's up with this?
>>
>> Thanks,
>>
>> s.ross
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list