You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failures:
1) ConversationUnreadMessage Indexes should have an index for {:operator_id=>1, :conversation_id=>1} with options of {:background=>true}
Failure/Error: it { is_expected.to have_index_for(operator_id: 1, conversation_id: 1).with_options(background: true) }
Expected ConversationUnreadMessage to have an index for {:operator_id=>1, :conversation_id=>1} with options of {:background=>true}, got no index for {:operator_id=>1, :conversation_id=>1}
...
I'm using Mongoid 5.1.6 in a Rails 4.2.2 application.
I'm able to test all the Mongoid things of my models excepted the indexes.
I have a model like this:
And my spec file like this:
The tests are failing with the following:
I did it following this gem's README.md file instructions.
Is there anything else that shall be done in order to get this to work? Or should it be a bug of this gem?
The text was updated successfully, but these errors were encountered: