Sha256: 5f79207c8f39297e3504ab4ffdbf6bb57b4ae6cac8afc56e7757f630a536df30

Contents?: true

Size: 250 Bytes

Versions: 38

Compression:

Stored size: 250 Bytes

Contents

if defined? Devise
  def log_in(user, options = {})
    initial_path = options.fetch(:initial_path, :root_path)
    visit send(initial_path, :auth_token => user.authentication_token)
  end

  def log_out
    visit destroy_user_session_path
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
rspectacular-0.22.2 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.22.1 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.22.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.6 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.5 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.4 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.3 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.2 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.1 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.21.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.20.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.19.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.18.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.17.1 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.17.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.16.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.15.2 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.15.1 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.15.0 lib/rspectacular/helpers/session_helpers.rb
rspectacular-0.14.1 lib/rspectacular/helpers/session_helpers.rb