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

- old
+ new

@@ -11,7 +11,9 @@ it { must be_stored_in(:people) } 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 end