Sha256: c9d1426e57d3cf6b85b8dd39a96497c73a638f00a5ae4a45016e7146bfb82255

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

module Mongoid
  module Matchers
    class HaveIndexForBase
      attr_reader :index_key, :index_options, :model

      def initialize(index_key)
        @index_key = index_key.symbolize_keys
      end

      def with_options(index_options = {})
        @index_options = index_options
        self
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-rspec-4.2.0 lib/matchers/indexes/have_index_for.rb
mongoid-rspec-4.1.0 lib/matchers/indexes/have_index_for.rb
mongoid-rspec-4.0.1 lib/matchers/indexes/have_index_for.rb
mongoid-rspec-4.0.0 lib/matchers/indexes/have_index_for.rb