test/matchers/document_test.rb in mongoid-minitest-0.0.3 vs test/matchers/document_test.rb in mongoid-minitest-0.0.3.1

- old
+ new

@@ -14,6 +14,12 @@ it { must have_field(:name).of_type(String).with_default_value("me") } it { must have_fields(:name, :login).of_type(String).with_default_value("me") } it { must have_index_for(:name) } end + + describe Pet do + subject { Pet } + + it { must have_index_for(:person) } + end end