Rspec 跳过查看规格的命令

Rspec command to skip view specs

当我们rspec命令它运行所有规格。我不想 运行 查看规格。

有没有办法disable/skip查看规格?

除了制定这些规格 pending..

你应该尝试这样的事情 -

使用 --exclude-pattern

rspec --exclude-pattern "spec/views/**/*_spec.rb"

https://www.relishapp.com/rspec/rspec-core/v/3-3/docs/configuration/exclude-pattern