Sha256: 6b7b1f071494a72f54935479291276c6dd9fc47958ca968ee5e73fdd9b1ae6ff
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' RSpec.describe "Indexes" do describe Article do it { is_expected.to have_index_for(published: 1) } it { is_expected.to have_index_for(title: 1).with_options(unique: true, background: true, drop_dups: true) } it { is_expected.to have_index_for('permalink._id' => 1) } end describe Profile do it { is_expected.to have_index_for(first_name: 1, last_name: 1) } end describe Log do it { is_expected.to have_index_for(created_at: 1).with_options(bucket_size: 100, expire_after_seconds: 3600) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-rspec-3.0.0 | spec/unit/indexes_spec.rb |
mongoid-rspec-2.2.0 | spec/unit/indexes_spec.rb |
mongoid-rspec-2.1.0 | spec/unit/indexes_spec.rb |