Created
March 1, 2012 21:04
-
-
Save apolzon/1953217 to your computer and use it in GitHub Desktop.
Rspec how long does each example take
This file contains hidden or 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
| if ENV['PROFILE_LIKE_CRAZY'] | |
| config.before :each do | |
| $start = Time.now | |
| end | |
| config.after :each do | |
| p "#{example.description} spec ran in #{"%.2f" % (Time.now - $start)} seconds" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment