Permalink
Browse files

Merge pull request #1 from akhilstanislavose/master

logger.err typo
  • Loading branch information...
vishnugopal committed May 25, 2012
2 parents e5a901e + cfc5c0e commit 1256412f2f8824d0a344989d9aa2b3361c7c3b96
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/mobme/infrastructure/service/worker.rb
  2. +1 −1 spec/mobme/infrastructure/service/worker_spec.rb
@@ -18,7 +18,7 @@ def run
logger.info "Starting #{self.class}.."
work
rescue StandardError => e
- logger.err(e.backtrace.unshift(e.inspect).join("\n"))
+ logger.error(e.backtrace.unshift(e.inspect).join("\n"))
raise
end
end
@@ -22,7 +22,7 @@ class DummyWorker < AsyncService::Worker
it "should log and re-raise any uncaught errors while running" do
dummy_worker = DummyWorker.new
- dummy_worker.logger.should_receive(:err)
+ dummy_worker.logger.should_receive(:error)
lambda { dummy_worker.run }.should raise_error
end

0 comments on commit 1256412

Please sign in to comment.