[rspec-users] rspec and shoulda have_indices

slavix mikerin.slava at gmail.com
Fri Sep 2 05:12:24 EDT 2011


Hello,
I am developing a rails 3.1 app. My Gemfile has shoulda gems
Gemfile
..
gem "shoulda"
gem "shoulda-matchers"

In a model spec I have
spec file
  it { should have_indices([:user, :currency]) }

And I get this error...

NoMethodError:
       undefined method `has_indices?' for #<Balance:0xf3b860c>



More information about the rspec-users mailing list