search for: currentperson

Displaying 2 results from an estimated 2 matches for "currentperson".

Did you mean: current_person
2005 Feb 24
8
web services with ActionWebService
...xhash => :string} ] end And then in my app/controllers/person_controller.rb file I have: class PersonController < ApplicationController layout "xhtml11common", :except => :foaf def show @person = Person.find @params["id"] if @session["currentperson"] != nil @currentperson = Person.find @session["currentperson"] end end def foaf @person = Person.find @params["id"] end # web service method def friends return ["helloworld_" + @params[''mboxhash...
2007 Oct 25
1
Mocking/Stubbing help with subdomain as account key
My app uses account_location to set up subdomains as account keys. In my controllers, all my model operations are scoped through the @current_person object. The question is: How do I test this with RSpec''s mocking and stubbing? Basically, I need to test that @current_person.things is getting the find message and returning @thing. I''ve tried stubbing and mocking