Using rspec the ensure logger is called?

A quick Google search elicited this It seems to detail a number of logging scenarios and offers testing solutions.

A quick Google search elicited this. It seems to detail a number of logging scenarios and offers testing solutions.

Thanks for the suggestion, I found that too, but it was a little heavier than I wanted to commit to. I figured something else out. – Matthew Aug 29 at 21:07.

I figured out exactly what I wanted, for example: Rails.logger. Expects(:error). With('this error message') Is how you can use mocha to assert that a specific error message is being logged.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions