That's great!
Cheers!
sinclair
On 10/26/07, Ryan Heneise <[EMAIL PROTECTED]> wrote:
>
> On Oct 26, 2007, at 12:11 PM, sinclair bain wrote:
>
> > Ryan,
> >
> > Are you stubbing
> >
> > @current_company = Company.find_by_subdomain(account_subdomain)
> >
> > in the inherited #find_current_company
On Oct 26, 2007, at 12:11 PM, sinclair bain wrote:
> Ryan,
>
> Are you stubbing
>
> @current_company = Company.find_by_subdomain(account_subdomain)
>
> in the inherited #find_current_company method ?
>
> Make sure the @current_company is the same one upon which you have
> your expectations ?
>
Ryan,
Are you stubbing
@current_company = *Company.find_by_subdomain(account_subdomain)*
in the inherited #find_current_company method ?
Make sure the @current_company is the same one upon which you have your
expectations ?
ie
before do
...
Company.stub!(:find_by_subdomain).and_return(@curr
How do you go about implementing and rspecing subdomains as account
keys? I'm sure that this must be an issues for others as well.
So I have an app using subdomains as account keys. The Application
Controller sets up @current_company in a before filter. Everything is
done within the context