Sha256: 6a8e195542755ca6ad1f354cbffbfe3ff9c3045721e4ac733844d0ae81fd76da

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

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

class ValidateAssociatedMatcherTest < MiniTest::Unit::TestCase
  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.0.0 test/cases/validate_associated_matcher_test.rb