Search code examples
ruby-on-railsrspecguard

Skipping specific rspec tests in guard


I'm trying to get the guard to skip some tests (those that require selenium to run). I've added browser_required tag to them and running rspec with "--tag ~browser_required" filters them out.

However I can't get guard not to run them, I've set :cli => "--tag ~browser_required" in guardfile. This is my full guard file http://pastebin.com/pGuWAQm8


Solution

  • In your gist it does have two rspec blocks (one with cli and another without). Perhaps deleting the second one will at least get this working.