evansagge/mongoid-rspec — Issue #57: undefined method `has_index_for?' for
Author: zolzaya
Created: 2012-02-05 15:43:09+00:00
State: open

Hi all,

When I added index test to my rspec. I get following errors:

~~~ruby
1) Mobile
Failure/Error: it { should have_index_for(:uid) }
NoMethodError:
undefined method `has_index_for?' for #
# ./spec/models/mobile_spec.rb:17:in `block (2 levels) in '
~~~

Here is my environment information:
* rails 3.2,1
* mongoid 2.4.3
* mongoid-rspec 1.4.4