Sha256: 9fcfebb5438941465d71c3b7e2ae3d2b760ed1e24fba375b4b66d93ac14b506f

Contents?: true

Size: 350 Bytes

Versions: 14

Compression:

Stored size: 350 Bytes

Contents

module ControllerMacros
  def login_scitent_admin
    before(:each) do
      @request.env["devise.mapping"] = Devise.mappings[:users]
      sign_in Factory(:user_scitent_admin)
    end
  end

  def login_learner
    before(:each) do
      @request.env["devise.mapping"] = Devise.mappings[:users]
      sign_in Factory(:user_learner)
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
scidea-hsfc-policies-0.0.3 spec/support/controller_macros.rb
scidea-hsfc-policies-0.0.2 spec/support/controller_macros.rb
scidea-hsfc-policies-0.0.1 spec/support/controller_macros.rb
scidea-schools-1.1 spec/support/controller_macros.rb
scidea-schools-1.0.6 spec/support/controller_macros.rb
scidea-cv-redirects-0.0.2 spec/support/controller_macros.rb
scidea-cv-sco_completion-0.0.2 spec/support/controller_macros.rb
scidea-cv-sco_completion-0.0.1 spec/support/controller_macros.rb
scidea-cv-redirects-0.0.1 spec/support/controller_macros.rb
scidea-schools-1.0.5 spec/support/controller_macros.rb
scidea-schools-1.0.4 spec/support/controller_macros.rb
scidea-schools-1.0.3 spec/support/controller_macros.rb
scidea-schools-1.0.2 spec/support/controller_macros.rb
scidea-schools-1.0.1 spec/support/controller_macros.rb