RSpec Mocks and `instance_double`

RSpec is a testing framework for Behaviour Driven Development that is composed of multiple libraries. In my current job, for testing Ruby on Rails application, we use rspec-rails gem that installs also all other libraries: rspec-core, rspec-exceptations, rspec-mocks and rspec-support.

 

Understanding Ruby `each_with_object` method

It is always nice to do the same thing in a better and quicker way. A problem that occurs quite often in my everyday work is converting a hash to an array of hashes with a different structure.

 

dotfiles. Why you should use them.

A few weeks ago I even did not know what dotfiles are and how they can make my day-to-day work more efficient.