Created
September 12, 2011 21:29
-
-
Save ryanb/1212502 to your computer and use it in GitHub Desktop.
Focus on specific specs in RSpec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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