Rspec for thor script

How should we write rspecs for thor tasks.

I know to write specs for tasks with no option.
But how do we write spec for tasks with mandatory options
Kindly guide me for the same.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs