spec/keys_spec.rb in yogi_berra-0.1.6 vs spec/keys_spec.rb in yogi_berra-0.1.7
- old
+ new
@@ -14,11 +14,12 @@
:d => 10.5,
:e => nil,
:f => ["one", "two", "three"]
}
},
- "time" => time
+ "time" => time,
+ "warden.user.user.key" => "json/bson can't have periods in the keys"
}
hash.deep_stringify_keys_and_values!
hash.should == {
"foo" => "bar",
"bar" => "Class",
@@ -29,10 +30,11 @@
"d" => 10.5,
"e" => "",
"f" => ["one", "two", "three"]
}
},
- "time" => time
+ "time" => time,
+ "warden-user-user-key" => "json/bson can't have periods in the keys"
}
lambda { BSON::BSON_CODER.serialize(hash) }.should_not raise_error
end
end
\ No newline at end of file