Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created October 1, 2016 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/f14e41eb411e34c6424b07accc40260d to your computer and use it in GitHub Desktop.
Save myronmarston/f14e41eb411e34c6424b07accc40260d to your computer and use it in GitHub Desktop.
RSpec.configure do |rspec|
if ENV["CI"]
rspec.before(:example, :focus) do
raise "Do not commit examples tagged with :focus"
end
else
rspec.filter_run_when_matching :focus
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment