Sha256: 58ed80d0037b5dc44b4ab2256a9f57efb99dd1c750f7550b08b00ed1267dd94d

Contents?: true

Size: 518 Bytes

Versions: 16

Compression:

Stored size: 518 Bytes

Contents

require 'test_helper'

module Workarea
  module Api
    module Storefront
      class PasswordResetsIntegrationTest < Workarea::IntegrationTest
        def test_forgotten_passwords_emails
          user = create_user(password: 'p@assword!')

          assert_difference 'User::PasswordReset.count', 1 do
            post storefront_api.password_resets_path,
              params: { email: user.email }
          end

          assert_equal(user, User::PasswordReset.first.user)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

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