Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在哪里可以找到使用 RSpec 测试 Thor 脚本的好例子?
到目前为止,我的搜索还没有找到任何好的结果。
在https://github.com/wycats/thor/tree/master/spec试用 Thor 自己的仓库
我正在尝试在我的homedir项目中为 thor 进行 rspec 测试(目前在 homedir3 分支中)。查看CLI_spec.rb文件。
我并没有声称它们是单元测试的典范,但值得一看。