lib/matchers/indexes.rb in mongoid-rspec-1.5.4 vs lib/matchers/indexes.rb in mongoid-rspec-1.5.5
- old
+ new
@@ -1,9 +1,9 @@
module Mongoid
module Matchers
class HaveIndexForMatcher # :nodoc:
def initialize(index_fields)
- @index_fields = index_fields
+ @index_fields = index_fields.symbolize_keys!
end
def with_options(options = {})
@options = options
self