Permalink
Browse files

Switch to bson ordered hash shortcut syntax from helper

  • Loading branch information...
1 parent ab3af29 commit 9441cd216d9be33d541a032a469cd66489fd1dda @jnunemaker jnunemaker committed Oct 12, 2012
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)

0 comments on commit 9441cd2

Please sign in to comment.