Sha256: 3ace09493e42b98610e495b5672523688153e81298a7621145869a786e8534d5

Contents?: true

Size: 731 Bytes

Versions: 10

Compression:

Stored size: 731 Bytes

Contents

require "application_system_test_case"

class PasswordsTest < ApplicationSystemTestCase
  setup do
    @<%= singular_table_name %> = sign_in_as(<%= table_name %>(:lazaro_nixon))
  end

  test "updating the password" do
    click_on "Change password"

    fill_in "Current password", with: "secret123"
    fill_in "New password", with: "new_password"
    fill_in "Confirm new password", with: "new_password"
    click_on "Save changes"

    assert_text "Your password has been changed"
  end

  def sign_in_as(<%= singular_table_name %>)
    visit sign_in_url
    fill_in :email, with: <%= singular_table_name %>.email
    fill_in :password, with: "secret123"
    click_on "Sign in"

    return <%= singular_table_name %>
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authentication-zero-2.2.8 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.7 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.6 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.5 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.4 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.3 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.2 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.2.1 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.1.1 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt
authentication-zero-2.1.0 lib/generators/authentication/templates/test_unit/system/passwords_test.rb.tt