Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4339818 to your computer and use it in GitHub Desktop.
Save anonymous/4339818 to your computer and use it in GitHub Desktop.
Log each method in rspec
describe "Something"
before(:each) do |x|
Rails.logger.info "RspecExample: " + x.example.metadata[:full_description]
end
end
RSpec.configure do |config|
#...
config.before(:each) do |x|
Rails.logger.info "RspecExample: " + x.example.metadata[:full_description]
end
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment