我正在尝试编写一个Git预提交钩子,如果有一个标记的示例,它将不允许用户提交:focus.
:focus
使用RSpec的API(好吧即使它是私有的),有没有办法找出:focus过滤器的例子数量?
我找到了example_count-instance_method.它可能很有用,但我不确定如何从外部脚本调用它.
ruby git rspec rspec3
git ×1
rspec ×1
rspec3 ×1
ruby ×1