Sha256: 532a34599456ad7b80b4e2c624588e0c95fa9e63297c0789112c83ed6da4a6b7

Contents?: true

Size: 687 Bytes

Versions: 58

Compression:

Stored size: 687 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class LoginIntegrationTest < ActionDispatch::IntegrationTest

  def setup
    AdminUser.create! email: 'admin@example.com', password: 'password', password_confirmation: 'password'
  end

  test 'when not loged in whe should be redirected to the login page' do
    visit('/lalala/pages')
    assert_equal(new_admin_user_session_path, current_path)
  end

  test 'login' do
    visit('/lalala/pages')
    assert_equal(new_admin_user_session_path, current_path)
    fill_in('Email',    with: 'admin@example.com')
    fill_in('Password', with: 'password')
    click_on('Login')
    assert_equal(lalala_pages_path, current_path)
  end

end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.165 test/integration/login_test.rb
lalala-4.0.0.dev.162 test/integration/login_test.rb
lalala-4.0.0.dev.161 test/integration/login_test.rb
lalala-4.0.0.dev.160 test/integration/login_test.rb
lalala-4.0.0.dev.157 test/integration/login_test.rb
lalala-4.0.0.dev.156 test/integration/login_test.rb
lalala-4.0.0.dev.155 test/integration/login_test.rb
lalala-4.0.0.dev.154 test/integration/login_test.rb
lalala-4.0.0.dev.153 test/integration/login_test.rb
lalala-4.0.0.dev.152 test/integration/login_test.rb
lalala-4.0.0.dev.149 test/integration/login_test.rb
lalala-4.0.0.dev.146 test/integration/login_test.rb
lalala-4.0.0.dev.144 test/integration/login_test.rb
lalala-4.0.0.dev.141 test/integration/login_test.rb
lalala-4.0.0.dev.136 test/integration/login_test.rb
lalala-4.0.0.dev.135 test/integration/login_test.rb
lalala-4.0.0.dev.134 test/integration/login_test.rb
lalala-4.0.0.dev.133 test/integration/login_test.rb
lalala-4.0.0.dev.132 test/integration/login_test.rb
lalala-4.0.0.dev.131 test/integration/login_test.rb