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.