Sha256: b2dfdc7cb5484f9beb2587ade857066857d26cb3fc00a170cf05eb468a8ee480

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require 'test_helper'
require 'models/user'

class ValidateConfirmationMatcherTest < Minitest::Test
  test 'must validate confirmation of an attribute' do
    assert_must validate_confirmation_of(:password), User
  end

  test 'must not validate confirmation of an optional attribute' do
    assert_wont validate_confirmation_of(:no_confirm), User
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minitest-activemodel-1.1.0 test/cases/validate_confirmation_matcher_test.rb