Sha256: 36412528b3cf0645bc00d4293a0f063971bc9051d47521c782d9ba50f46c3dc8

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

require 'test_helper'

class Contour::PasswordsControllerTest < ActionController::TestCase
  setup do
    # login(users(:admin))
    request.env["devise.mapping"] = Devise.mappings[:user]
  end

  test "should be able to view forget password" do
    get :new
    assert_response :success
  end

  test "should be able to request new password" do
    post :create, user: { email: 'valid@example.com' }
    assert_equal I18n.t('devise.passwords.send_instructions'), flash[:notice]
    assert_redirected_to new_user_session_path
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
contour-3.0.1 test/controllers/passwords_controller_test.rb
contour-3.0.1.rc test/controllers/passwords_controller_test.rb
contour-3.0.0 test/controllers/passwords_controller_test.rb
contour-3.0.0.rc test/controllers/passwords_controller_test.rb
contour-3.0.0.beta1 test/controllers/passwords_controller_test.rb