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.3.14 test/models/incline/password_reset_request_test.rb
incline-0.3.13 test/models/incline/password_reset_request_test.rb
incline-0.3.12 test/models/incline/password_reset_request_test.rb
incline-0.3.11 test/models/incline/password_reset_request_test.rb
incline-0.3.10 test/models/incline/password_reset_request_test.rb
incline-0.3.9 test/models/incline/password_reset_request_test.rb
incline-0.3.8 test/models/incline/password_reset_request_test.rb
incline-0.3.7 test/models/incline/password_reset_request_test.rb
incline-0.3.6 test/models/incline/password_reset_request_test.rb
incline-0.3.5 test/models/incline/password_reset_request_test.rb
incline-0.3.4 test/models/incline/password_reset_request_test.rb
incline-0.3.3 test/models/incline/password_reset_request_test.rb
incline-0.3.2 test/models/incline/password_reset_request_test.rb
incline-0.3.1 test/models/incline/password_reset_request_test.rb
incline-0.3.0 test/models/incline/password_reset_request_test.rb
incline-0.2.36 test/models/incline/password_reset_request_test.rb
incline-0.2.35 test/models/incline/password_reset_request_test.rb
incline-0.2.34 test/models/incline/password_reset_request_test.rb
incline-0.2.28 test/models/incline/password_reset_request_test.rb
incline-0.2.27 test/models/incline/password_reset_request_test.rb