Rspec to work with Logger
In order to set expectations on what we actually logged during the method call,assign under before(:each)
@test_logger = StringIO.new
controller.stub!(:logger).and_return(Logger.new(@test_logger))
and then match the log output using @test_logger.string