Sha256: b0dccc2f14ce1c88a6ba13a38089fb5ceaf6771f81af9c6d1219b4ed7fd9acac

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

require 'test_helper'
require 'ar_test_helper'
require 'models/person'

class ValidateAssociatedMatcherTest < Minitest::Test
  test 'must validate exists association' do
    assert_must validate_associated(:posts), Person
  end

  test 'must not validate exists association' do
    assert_wont validate_associated(:parent), Person
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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