Sha256: ffbe436e473d83de58fb01b508470e665b97eaf30d5468fde0332b5f3bb86050

Contents?: true

Size: 872 Bytes

Versions: 121

Compression:

Stored size: 872 Bytes

Contents

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

class AdminUsersTest < ActionDispatch::IntegrationTest

  def setup
    login_as_admin!
  end

  test 'list users' do
    click_on('Admin Users')
    assert page.has_text?('admin@example.com')
  end

  test 'create user' do
    click_on('Admin Users')
    click_on('New Admin User')
    assert_equal('/lalala/admin_users/new', current_path)

    fill_in('Name',                              with: 'Mr. Manager')
    fill_in('Email',                             with: 'manager@example.com')
    fill_in('admin_user[password]',              with: 'foobarbaz!')
    fill_in('admin_user[password_confirmation]', with: 'foobarbaz!')
    click_on('Create Admin user')
    assert_equal('/lalala/admin_users/2', current_path)

    assert page.has_text?('manager@example.com')
    assert page.has_text?('Mr. Manager')
  end

end

Version data entries

121 entries across 121 versions & 1 rubygems

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