spec/functional/dumpable_spec.rb in mongo_mapper-0.14.0 vs spec/functional/dumpable_spec.rb in mongo_mapper-0.15.0
- old
+ new
@@ -5,10 +5,10 @@
let(:doc) { Doc { key :foo, String } }
let(:answer) { Answer.create(:body => "answer body") }
let(:store) { ActiveSupport::Cache::MemoryStore.new(:size => 1.megabyte) }
it "should be able to be marshalled" do
- expect { Marshal.dump(answer) }.to_not raise_error
+ lambda { Marshal.dump(answer) }.should_not raise_error
end
it "should be able to be unmarshalled" do
dumped = Marshal.dump(answer)
reconstituted_answer = Marshal.load(dumped)
\ No newline at end of file