Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch to bson ordered hash shortcut syntax from helper
  • Loading branch information
jnunemaker committed Oct 12, 2012
1 parent ab3af29 commit 9441cd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/plucky/query_spec.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 9441cd2

Please sign in to comment.