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.26 features/step_definitions/json_steps.rb
mongo_doc-0.6.25 features/step_definitions/json_steps.rb
mongo_doc-0.6.23 features/step_definitions/json_steps.rb
mongo_doc-0.6.22 features/step_definitions/json_steps.rb
mongo_doc-0.6.21 features/step_definitions/json_steps.rb
mongo_doc-0.6.20 features/step_definitions/json_steps.rb
mongo_doc-0.6.19 features/step_definitions/json_steps.rb
mongo_doc-0.6.18 features/step_definitions/json_steps.rb
mongo_doc-0.6.17 features/step_definitions/json_steps.rb
mongo_doc-0.6.16 features/step_definitions/json_steps.rb
mongo_doc-0.6.15 features/step_definitions/json_steps.rb
mongo_doc-0.6.14 features/step_definitions/json_steps.rb
mongo_doc-0.6.13 features/step_definitions/json_steps.rb
mongo_doc-0.6.12 features/step_definitions/json_steps.rb
mongo_doc-0.6.11 features/step_definitions/json_steps.rb
mongo_doc-0.6.10 features/step_definitions/json_steps.rb
mongo_doc-0.6.9 features/step_definitions/json_steps.rb
mongo_doc-0.6.8 features/step_definitions/json_steps.rb
mongo_doc-0.6.7 features/step_definitions/json_steps.rb
mongo_doc-0.6.6 features/step_definitions/json_steps.rb