You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RSpec.configure do |config|
config.include AuthHelpers
end
spec/support/auth_helpers.rb
module AuthHelpers
def sign_in(account)
allow(@controller).to receive(:authenticate_account!).and_return(true)
allow(@controller).to receive(:current_account).and_return(account)
end
end
The text was updated successfully, but these errors were encountered:
For RSpec 3+
spec/rails_helper.rb
spec/support/auth_helpers.rb
The text was updated successfully, but these errors were encountered: