Skip to main content

rspec

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.