Sha256: b854352da42212472485587b418fdffd07d8c27f3ac606b1d22bc818031d8f66
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require 'spec_helper' describe "Indexes" do describe Article do it { should have_index_for(published: 1) } it { should have_index_for(title: 1).with_options(unique: true, background: true, dropDups: true) } it { should have_index_for('permalink._id' => 1) } end describe Profile do it { should have_index_for(first_name: 1, last_name: 1) } end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mongoid-rspec-2.0.0 | spec/unit/indexes_spec.rb |
mongoid-rspec-2.0.0.rc1 | spec/unit/indexes_spec.rb |
mongoid4-rspec-1.11.0 | spec/unit/indexes_spec.rb |