Sha256: cea3beda30211aecefa80c5abdf299bdcf0e4b25534b819f2a3ceb2d913b1a7b

Contents?: true

Size: 869 Bytes

Versions: 16

Compression:

Stored size: 869 Bytes

Contents

require 'test_helper'
require 'workarea/api/documentation_test'

module Workarea
  module Api
    module Storefront
      class PasswordResetsDocumentationTest < DocumentationTest
        resource 'Password Resets'

        def test_and_document_create
          description 'Sending a forgot password email'
          route storefront_api.password_resets_path
          explanation <<-EOS
            This will send a password reset email to the email address if there
            is an account. The email will contain a link to the site where the
            password reset can be completed.
          EOS

          record_request do
            post storefront_api.password_resets_path,
              as: :json,
              params: { email: create_user.email }

            assert_equal(200, response.status)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
workarea-api-4.5.6 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.6 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.5.5 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.5 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.5.4 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.4 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.5.3 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.3 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.5.2 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.2 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.5.0 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.5.0 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.4.7 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.4.7 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-4.4.6 storefront/test/documentation/workarea/api/storefront/password_resets_documentation_test.rb
workarea-api-storefront-4.4.6 test/documentation/workarea/api/storefront/password_resets_documentation_test.rb