Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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