module Answers::Testing::FeatureMacros::Authentication
Public Instance Methods
answers_login_with(factory)
click to toggle source
# File lib/answers/testing/feature_macros/authentication.rb, line 5 def answers_login_with(factory) let!(:logged_in_user) { FactoryGirl.create(factory) } before do login_as logged_in_user, :scope => :answers_user end end