Sha256: e6c63e6a6048500ae8623b124d6ee23aa2dc99a2ff7d3be58b6174c489b0761d

Contents?: true

Size: 706 Bytes

Versions: 48

Compression:

Stored size: 706 Bytes

Contents

require 'test_helper'

module Incline
  class PasswordResetRequestTest < ActiveSupport::TestCase

    def setup
      @item = Incline::PasswordResetRequest.new(
          email: 'user@example.com',
          recaptcha: Incline::Recaptcha::DISABLED
      )
    end

    test 'should be valid' do
      assert @item.valid?
    end

    test 'should require email' do
      assert_required @item, :email
    end

    test 'should require recaptcha' do
      assert_required @item, :recaptcha
    end

    test 'email should be validated' do
      assert_email_validation @item, :email
    end

    test 'recaptcha should be validated' do
      assert_recaptcha_validation @item, :recaptcha
    end


  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.2.6 test/models/incline/password_reset_request_test.rb
incline-0.2.5 test/models/incline/password_reset_request_test.rb
incline-0.2.4 test/models/incline/password_reset_request_test.rb
incline-0.2.3 test/models/incline/password_reset_request_test.rb
incline-0.1.9 test/models/incline/password_reset_request_test.rb
incline-0.1.8 test/models/incline/password_reset_request_test.rb
incline-0.1.7 test/models/incline/password_reset_request_test.rb
incline-0.1.5 test/models/incline/password_reset_request_test.rb