标志确定RSpec执行代码块的频率。
The symbol determines how often RSpec should execute the code block.
首先,将执行代码块中最接近的匹配结果。
The first, closest match results in said code block being executed. So, for example, in Scala you could have.
在粗糙的层次上,您通常只想在开始或结束执行代码块时自动调用不太特定的规则。
At a rough level, you usually just want to automatically call a less specific rule at either the start or the end of execution of a code block.
应用推荐