Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to bson ordered hash shortcut syntax from helper

  • Loading branch information...
commit 9441cd216d9be33d541a032a469cd66489fd1dda 1 parent ab3af29
@jnunemaker jnunemaker authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/plucky/query_spec.rb
View
6 spec/plucky/query_spec.rb
@@ -2,9 +2,9 @@
describe Plucky::Query do
before do
- @chris = oh(['_id', 'chris'], ['age', 26], ['name', 'Chris'])
- @steve = oh(['_id', 'steve'], ['age', 29], ['name', 'Steve'])
- @john = oh(['_id', 'john'], ['age', 28], ['name', 'John'])
+ @chris = BSON::OrderedHash['_id', 'chris', 'age', 26, 'name', 'Chris']
+ @steve = BSON::OrderedHash['_id', 'steve', 'age', 29, 'name', 'Steve']
+ @john = BSON::OrderedHash['_id', 'john', 'age', 28, 'name', 'John']
@collection = DB['users']
@collection.insert(@chris)
@collection.insert(@steve)
Please sign in to comment.
Something went wrong with that request. Please try again.