Sha256: 538f0726eaf417237a7b60cb6bcb02b45c4bd110bf5a22f69a802abead459b3f

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongodoc-0.0.0 features/step_definitions/json_steps.rb