spec/bin/store_spec.rb in bin-0.6 vs spec/bin/store_spec.rb in bin-0.6.1
- old
+ new
@@ -39,10 +39,10 @@
it "sets value key to value" do
store.read('foo').should == 'bar'
end
it "should marshal value by default" do
- document['value'].should == Marshal.dump('bar')
+ document['value'].to_s.should == BSON::Binary.new(Marshal.dump('bar')).to_s
document['raw'].should be_false
end
it "should be able to store in raw format" do
store.write('foo', 'bar', :raw => true)
\ No newline at end of file