Skip to content

Instantly share code, notes, and snippets.

@teropa
Created November 30, 2012 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teropa/4176014 to your computer and use it in GitHub Desktop.
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
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