Sha256: 1e94083c82abb77b73aaff0c05ebffaf628191638ee7b26294d3308e4ad3a560

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

require 'test_helper'

describe Mongoid::Matchers::Associations do

  describe "have_many" do
    subject { Person }

    it { must have_many(:pets) }
    it { wont have_many(:accounts) }

    it { must have_many(:pets).of_type(Pet) }
    it { wont have_many(:pets).of_type(Person) }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-minitest-0.0.1 test/matchers/associations_test.rb