Hi,
I've got a lot of rspec controller tests. At the beginning of each
controller, I have:
def authenticate
...
end
def logout
...
end
Authenticates creates me a @current_user, logout destroys the @current_user.
As I said, this code is at the beginning of each controller, not very DRY
:-)
I've got a lot of rspec controller tests. At the beginning of each
controller, I have:
def authenticate
...
end
def logout
...
end
Authenticates creates me a @current_user, logout destroys the @current_user.
As I said, this code is at the beginning of each controller, not very
2 matches
Mail list logo