is there a way to stub a method that sets an instance variable, so the stub sets it too?

def find_foo
  @foo = Foo.find(params[:id]
end


...
controller.stub!(:find_foo).and_assigns(:foo, "123")


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to