开发者

Where can I find good examples of testing a Thor script with RSpec?

开发者 https://www.devze.com 2023-03-28 06:56 出处:网络
Where can I find good examples of testing a Thor script with RSpec? My searches 开发者_运维知识库have so far not turned up anything good.Try out Thor\'s own repo at https://github.com/wycats/thor/tre

Where can I find good examples of testing a Thor script with RSpec?

My searches 开发者_运维知识库have so far not turned up anything good.


Try out Thor's own repo at https://github.com/wycats/thor/tree/master/spec


I'm trying to do rspec tests for thor in my homedir project (in the homedir3 branch, at the moment). Look in the CLI_spec.rb file.

I don't claim they are the paragon of unit tests but it's something to look at.

0

精彩评论

暂无评论...
验证码 换一张
取 消