spec/unit/indexes_spec.rb in mongoid-rspec-1.4.5 vs spec/unit/indexes_spec.rb in mongoid-rspec-1.4.6

- old
+ new

@@ -1,12 +1,12 @@ require 'spec_helper' describe "Indexes" do describe Article do - it { should have_index_for(:published) } - it { should have_index_for(:title).with_options(:unique => true, :background => true) } + it { should have_index_for(published: 1) } + it { should have_index_for(title: 1).with_options(unique: true, background: true) } end describe Profile do - it { should have_index_for([ [ :first_name, Mongo::ASCENDING ], [ :last_name, Mongo::ASCENDING ] ]) } + it { should have_index_for(first_name: 1, last_name: 1) } end end \ No newline at end of file