Sha256: 5cbc715aee51ec8ca2b9193dc1248c2b96ff9abe995e528bd147a3bdb750ea0e

Contents?: true

Size: 397 Bytes

Versions: 37

Compression:

Stored size: 397 Bytes

Contents

When /^I remove '(.+)'$/ do |doc_name|
  doc = instance_variable_get("@#{doc_name}")
  doc.remove
end

Then /^the document '(.+)' is not found$/ do |doc_name|
  doc = instance_variable_get("@#{doc_name}")
  doc.class.find_one(doc.id)
end

Then /^an exception is raised if I remove '(.+)'$/ do |doc_name|
  doc = instance_variable_get("@#{doc_name}")
  lambda { doc.remove }.should raise_error
end

Version data entries

37 entries across 37 versions & 3 rubygems

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