Sha256: faf086f963be5cb1c67c58811762208ddd9cc5e90f2c993be0f428d8c0ee8b6d

Contents?: true

Size: 702 Bytes

Versions: 129

Compression:

Stored size: 702 Bytes

Contents

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

class LoginIntegrationTest < ActionDispatch::IntegrationTest

  def setup
    AdminUser.create! name: 'Admin', 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

129 entries across 129 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.425 test/integration/login_test.rb
lalala-4.1.0.dev.420 test/integration/login_test.rb
lalala-4.1.0.dev.419 test/integration/login_test.rb
lalala-4.1.0.dev.418 test/integration/login_test.rb
lalala-4.1.0.dev.417 test/integration/login_test.rb
lalala-4.0.0.dev.416 test/integration/login_test.rb
lalala-4.1.0.dev.415 test/integration/login_test.rb
lalala-4.1.0.dev.414 test/integration/login_test.rb
lalala-4.1.0.dev.413 test/integration/login_test.rb
lalala-4.1.0.dev.412 test/integration/login_test.rb
lalala-4.1.0.dev.411 test/integration/login_test.rb
lalala-4.1.0.dev.410 test/integration/login_test.rb
lalala-4.1.0.dev.409 test/integration/login_test.rb
lalala-4.0.0.dev.407 test/integration/login_test.rb
lalala-4.1.0.dev.408 test/integration/login_test.rb
lalala-4.1.0.dev.398 test/integration/login_test.rb
lalala-4.1.0.dev.397 test/integration/login_test.rb
lalala-4.0.0.dev.396 test/integration/login_test.rb
lalala-4.0.0.dev.395 test/integration/login_test.rb
lalala-4.1.0.dev.394 test/integration/login_test.rb