Sha256: 4d4c30fc5561ab76d904a6c2fc9b59399c34b2341c9d7d5ac5540bd4ea2be065

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 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) }
    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

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-rspec-1.10.0 spec/unit/indexes_spec.rb
mongoid-rspec-1.9.0 spec/unit/indexes_spec.rb