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