Change 'code' to 'message'

This commit is contained in:
riking
2014-07-17 15:19:58 -07:00
parent a69efada85
commit d90404e830
7 changed files with 14 additions and 14 deletions

View File

@ -144,9 +144,9 @@ describe Discourse do
it "correctly passes extra context" do
exception = StandardError.new
Discourse.handle_exception(exception, {code: "Doing a test", post_id: 31}, nil)
Discourse.handle_exception(exception, {message: "Doing a test", post_id: 31}, nil)
logger.exception.should == exception
logger.context.keys.sort.should == [:current_db, :current_hostname, :code, :post_id].sort
logger.context.keys.sort.should == [:current_db, :current_hostname, :message, :post_id].sort
end
end