Monthly Archive: August 2016


How to test a private method in rspec

Since you cannot access a private method directly, in order to test a private method, you can make use of the ‘send’ method that is available on all objects. @obj = result =...


Auto update Gemfile when installing ruby gems

npm lets you save a module into your package.json file using the –save options. You can do the same in ruby, by installing a gem called ‘gemrat’ and then using that command to install...


How to check all the rake tasks that are available for use

The rails rake command comes with a number of tasks. This tiny command shows you a list of all the rake tasks available and a short description. rake –tasks Reference