Module: Refinery::Testing::FeatureMacros::Authentication

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

Instance Method Summary collapse

Instance Method Details

#login_refinery_superuserObject



18
19
20
21
# File 'lib/refinery/testing/feature_macros/authentication.rb', line 18

def 
  Refinery.deprecate(:login_refinery_superuser, :when => '2.2', :replacement => 'refinery_login_with :refinery_superuser')
  (:refinery_superuser)
end

#login_refinery_translatorObject



23
24
25
26
# File 'lib/refinery/testing/feature_macros/authentication.rb', line 23

def 
  Refinery.deprecate(:login_refinery_translator, :when => '2.2', :replacement => 'refinery_login_with :refinery_translator')
  (:refinery_translator)
end

#login_refinery_userObject



13
14
15
16
# File 'lib/refinery/testing/feature_macros/authentication.rb', line 13

def 
  Refinery.deprecate(:login_refinery_user, :when => '2.2', :replacement => 'refinery_login_with :refinery_user')
  (:refinery_user)
end

#refinery_login_with(factory) ⇒ Object



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

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

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