Digging SCP

SCP is one of the commands we frequently use, and I have always wondered how it works.    SCP helps you copy file(s) remotely to a server securely. To understand the working of SCP, where else to look for it other than the code itself. So, I started looking at https://github.com/openssh/openssh-portable/blob/master/scp.c. What did I find out? SCP […]

Let Loose?

Today I faced a very interesting problem. I was working on one of the Rails Controllers, and writing specs using RSpec. This was my controller spec. And the code(assuming @organisation already being assigned by a before_action method): But, strangely, this test case was failing as the value of @expenses was nil. What went wrong? On […]