Sha256: 55b8d5428d1693fc3863a5d848db327d2df426bc7ccad021e70cd58392d640a6

Contents?: true

Size: 320 Bytes

Versions: 31

Compression:

Stored size: 320 Bytes

Contents

When /^I create an index named (.*) on the (.*) collection$/ do |index_name, doc|
  klass = doc.constantize
  klass.index(index_name)
end

Then /^there is an index on (.*) on the (.*) collection$/ do |index_name, doc|
  klass = doc.constantize
  klass.collection.index_information.should include("#{index_name}_1")
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
mongo_doc-0.6.26 features/step_definitions/index_steps.rb
mongo_doc-0.6.25 features/step_definitions/index_steps.rb
mongo_doc-0.6.23 features/step_definitions/index_steps.rb
mongo_doc-0.6.22 features/step_definitions/index_steps.rb
mongo_doc-0.6.21 features/step_definitions/index_steps.rb
mongo_doc-0.6.20 features/step_definitions/index_steps.rb
mongo_doc-0.6.19 features/step_definitions/index_steps.rb
mongo_doc-0.6.18 features/step_definitions/index_steps.rb
mongo_doc-0.6.17 features/step_definitions/index_steps.rb
mongo_doc-0.6.16 features/step_definitions/index_steps.rb
mongo_doc-0.6.15 features/step_definitions/index_steps.rb
mongo_doc-0.6.14 features/step_definitions/index_steps.rb
mongo_doc-0.6.13 features/step_definitions/index_steps.rb
mongo_doc-0.6.12 features/step_definitions/index_steps.rb
mongo_doc-0.6.11 features/step_definitions/index_steps.rb
mongo_doc-0.6.10 features/step_definitions/index_steps.rb
mongo_doc-0.6.9 features/step_definitions/index_steps.rb
mongo_doc-0.6.8 features/step_definitions/index_steps.rb
mongo_doc-0.6.7 features/step_definitions/index_steps.rb
mongo_doc-0.6.6 features/step_definitions/index_steps.rb