Sha256: bd2d7f7cb23b44f40c271a50f47c57819a773f916cccae58d3f58c5bd49319f0

Contents?: true

Size: 157 Bytes

Versions: 11

Compression:

Stored size: 157 Bytes

Contents

module Authentication
  def logged_in
    @user ||= create(:user)

    sign_in @user
  end

  def current_user
    controller.send(:current_user)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
devise_masquerade-0.1.1 spec/support/authentication.rb
devise_masquerade-0.1.0 spec/support/authentication.rb
devise_masquerade-0.0.9 spec/support/authentication.rb
devise_masquerade-0.0.8 spec/support/authentication.rb
devise_masquerade-0.0.7 spec/support/authentication.rb
devise_masquerade-0.0.6 spec/support/authentication.rb
devise_masquerade-0.0.5 spec/support/authentication.rb
devise_masquerade-0.0.4 spec/support/authentication.rb
devise_masquerade-0.0.3 spec/support/authentication.rb
devise_masquerade-0.0.2 spec/support/authentication.rb
devise_masquerade-0.0.1 spec/support/authentication.rb