Skip to main content

rake

2015

Testing rake tasks
·284 words·2 mins
rake ruby rspec
This post continues our work in Improving our rake tasks with OOP. In this one, we will discuss how to test our rake task; the example will be very straightforward. We will invoke the rake task and expect that some classes receive the correct arguments.
Improving our rake tasks with OOP
·684 words·4 mins
ruby rake
I have been writing some rake tasks for downloading backups, accessing APIs, or automating tedious and repetitive work. Rake tasks are great, but dangerous at the same time. We add so much code to our rake tasks that they become a source of errors.