Testing subdomains as account keys


I’m just starting to write tests for my apps (I’ve really been putting
it off). Im trying to test the following code but I’m getting an error
“undefined local variable or method `current_account’” in a functional

My codes is @ https://gist.github.com/62b19d8e8d26e392a4b4

Basically, how can I get access to the current_account method in my
functional test?


I think I’ve got it now. I’m now calling @controller.send
(:current_account) rather than current_account. I’m using send because
the method is private.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs