Re: [rspec-users] Need some help with a simple

2008-04-07 Thread chris anderson
Glenn Ford wrote: > I'm guessing the key is inside "find_account_by_subdomain_or_url". Do > you have that defined somewhere? It probably calls something like: > > @account = Account.find_by_subdomain(blah) or Account.find_by_url(blah) > > In which case that's probably what you need to stub. No

Re: [rspec-users] Need some help with a simple

2008-04-07 Thread Glenn Ford
I'm guessing the key is inside "find_account_by_subdomain_or_url". Do you have that defined somewhere? It probably calls something like: @account = Account.find_by_subdomain(blah) or Account.find_by_url(blah) In which case that's probably what you need to stub. Nothing is actually checking

[rspec-users] Need some help with a simple

2008-04-07 Thread chris anderson
I can't figure out why this is failing. It seems to have a hard time assigning the @account. I have spent way too long trying to figure this out. Thanks for any help. --- NoMethodError in 'StaffMembersController GET index should allow anonymous users' You have a nil object when you didn't e