Skip to content

Instantly share code, notes, and snippets.

@damncabbage
Created March 14, 2018 04:37
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 damncabbage/98608e8f842faa63fc349bcb6c73be2f to your computer and use it in GitHub Desktop.
Save damncabbage/98608e8f842faa63fc349bcb6c73be2f to your computer and use it in GitHub Desktop.
RSpec + Capybara Measure Timing (Profiling)
module CaptureAllTheThings
Capybara::DSL.methods.each do |name|
define_method(name) { measure { super } }
end
end
RSpec.configuration.include CaptureAllTheThings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment