You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let(:options){
{
:file_path => "v_1.0.0/chapter_1/content.md"
}
}
...
it "does a dry run render of html" do
expect{ ::MyThorTask.new.invoke(:foo, [], options) }.to output(...).to_stdout
end
Which give me this error:
Thor::RequiredArgumentMissingError:
No value provided for required options '--file-path'
But I can run the Thor task in the terminal just fine, so I think there is something broken with invoke.
The text was updated successfully, but these errors were encountered:
I am trying to test my Thor tasks and running into an issue. I have the following option defined on my Thor class:
and in my tests I have:
Which give me this error:
But I can run the Thor task in the terminal just fine, so I think there is something broken with
invoke
.The text was updated successfully, but these errors were encountered: