Debug the `--exclude-pattern` option in rspec.
You can exclude certain files from being run by rspec with the --exclude-pattern option like so:
rspec --exclude-pattern run_me_not_spec.rb
You can place this option into your
When doing this and then committing the
.rspec file its helpful to make sure the exclude pattern is correct. Try this command and pipe it into
rspec --dry-run -fdoc | grep 'excluded test name'
If no results are returned, then you are successfully excluding the test! The
--dry-run option is important because actually running the entire test suite would be too time consuming.