Rspec "assigns" and "render"

Hi all,

I’m trying to create some view specs using rspec following the example
at
http://rspec.rubyforge.org/documentation/rails/writing/views.html

However, when I put

@person = mock(“person”)
@person.stub!(:name).and_return ‘Joe’
assign[:person] = @person

I get a NameError saying that ‘assigns’ is not defined.
Similarly, "render ‘/people/list’ " gives me a NoMethodError. Any ideas
why
this might be?

Thanks!
Daniel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs