Skip to content

Instantly share code, notes, and snippets.

@zekefast
Created September 30, 2014 22:36
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 zekefast/0563f162e96561481704 to your computer and use it in GitHub Desktop.
Save zekefast/0563f162e96561481704 to your computer and use it in GitHub Desktop.
Output example file during time execution. spec/spec_helper.rb
Rspec.configure do |config|
current_file_path = nil
config.before(:each) do
file_path = example.metadata[:example_group][:file_path]
puts "\n#{file_path}" if file_path != current_file_path
current_file_path = file_path
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment