I have controller:
class AccountController < ApplicationController
def index
end
private
def current_account
@current_account ||= current_user.account
end
end
How to test private method current_account with rspec?
P.S. I use Rspec2 and Ruby on Rails 3
Use #instance_eval