Created
November 30, 2012 14:16
-
-
Save teropa/4176014 to your computer and use it in GitHub Desktop.
Combine the Rails 3.2 tagged logger with rSpec around hooks -> See which spec did each query in test.log
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
config.around(:each) do |example| | |
Rails.logger.tagged(example.metadata[:full_description]) do | |
example.run | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment