spec/mongomodel/concerns/logging_spec.rb in mongomodel-0.2.20 vs spec/mongomodel/concerns/logging_spec.rb in mongomodel-0.3.0
- old
+ new
@@ -3,10 +3,10 @@
module MongoModel
specs_for(Document, EmbeddedDocument) do
describe "logging" do
define_class(:TestDocument, described_class)
- let(:logger) { mock('logger') }
+ let(:logger) { mock('logger').as_null_object }
before(:all) { MongoModel.logger = logger }
it "should have a logger reader on the class" do
TestDocument.logger.should == logger
end