Skip to content

Instantly share code, notes, and snippets.

@ryanb
Created September 12, 2011 21:29
Show Gist options
  • Save ryanb/1212502 to your computer and use it in GitHub Desktop.
Save ryanb/1212502 to your computer and use it in GitHub Desktop.
Focus on specific specs in RSpec
# add this to your spec helper
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
end
# and then use the :focus tag in your specs
it "does something awesome", :focus do
# only this one will run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment