Hi,
I am using rSpec for testing my application. In my application controller I have a method like so:
def set_current_account
@current_account ||= Account.find_by_subdomain(request.subdomains.first)
end
Is it possible to set the request.subdomain in my spec? Maybe in the before block? I am new to rSpec so any advice on this would be great thanks.
Eef