Sha256: 5a503070b796a10f3f2a6b13bcecd6bfbe99c319dbb8f5cf01d3a3bfa8fbe285

Contents?: true

Size: 283 Bytes

Versions: 42

Compression:

Stored size: 283 Bytes

Contents

When /^I save the json '(\{.*\})'$/ do |json_text|
  json = JSON.parse(json_text)
  @last_save = @collection.save(json)
end

Then /^the json '(\{.*\})' roundtrips$/ do |json_text|
  json = JSON.parse(json_text)
  @collection.find_one(@last_save).should be_mongo_eql(json, false)
end

Version data entries

42 entries across 42 versions & 3 rubygems

Version Path
mongo_doc-0.6.5 features/step_definitions/json_steps.rb
mongo_doc-0.6.4 features/step_definitions/json_steps.rb
mongo_doc_rails2-0.6.2 features/step_definitions/json_steps.rb
mongo_doc-0.6.3 features/step_definitions/json_steps.rb
mongo_doc-0.6.2 features/step_definitions/json_steps.rb
mongo_doc-0.6.1 features/step_definitions/json_steps.rb
mongo_doc-0.6.0 features/step_definitions/json_steps.rb
mongo_doc_rails2-0.6.1 features/step_definitions/json_steps.rb
mongo_doc-0.5.5 features/step_definitions/json_steps.rb
mongo_doc-0.4.2 features/step_definitions/json_steps.rb
mongo_doc-0.4.1 features/step_definitions/json_steps.rb
mongo_doc-0.4.0 features/step_definitions/json_steps.rb
mongo_doc-0.3.2 features/step_definitions/json_steps.rb
mongo_doc-0.3.1 features/step_definitions/json_steps.rb
mongo_doc-0.3.0 features/step_definitions/json_steps.rb
mongodoc-0.2.4 features/step_definitions/json_steps.rb
mongodoc-0.2.2 features/step_definitions/json_steps.rb
mongodoc-0.2.1 features/step_definitions/json_steps.rb
mongodoc-0.2.0 features/step_definitions/json_steps.rb
mongodoc-0.1.2 features/step_definitions/json_steps.rb