Module: Answers::Testing::FeatureMacros::Authentication

Defined in:
lib/answers/testing/feature_macros/authentication.rb

Instance Method Summary collapse

Instance Method Details

#answers_login_with(factory) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/answers/testing/feature_macros/authentication.rb', line 5

def (factory)
  let!(:logged_in_user) { FactoryGirl.create(factory) }

  before do
     logged_in_user, :scope => :answers_user
  end
end