【RSpec】RSpecで特定のディレクトリだけ実行しない
RSpecで特定のディレクトリのファイルを除外して実行したい🤔
↓↓↓↓↓
--exclude-pattern
オプションを使う
https://relishapp.com/rspec/rspec-core/v/3-8/docs/configuration/exclude-pattern
Use the --exclude-pattern option to tell RSpec to skip looking for specs in files that match the pattern specified.
マッチするパターンのファイルをスキップする
例)
$ rspec --exclude-pattern "spec/requests/*_spec.rb"
上記コマンドでspec/featuresディレクトリ以外が実行される
便利🙌