Skip to content
Browse files

Use a bson ordered hash to fix 1.8.7/ree.

  • Loading branch information...
1 parent 62f8183 commit b12af57cb4ec63ce10f74f4764b46590f05a1bdb @jnunemaker jnunemaker committed Sep 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/functional/test_modifiers.rb
View
3 test/functional/test_modifiers.rb
@@ -2,8 +2,9 @@
class ModifierTest < Test::Unit::TestCase
def setup
+ compound_key = BSON::OrderedHash['n', 42, 'i', BSON::ObjectId.new]
@page_class_with_compound_key = Doc do
- key :_id, :default => lambda { {:n => 42, :i => BSON::ObjectId.new} }
+ key :_id, :default => lambda { compound_key }
key :title, String
key :day_count, Integer, :default => 0
key :week_count, Integer, :default => 0

0 comments on commit b12af57

Please sign in to comment.
Something went wrong with that request. Please try again.