Created
September 30, 2014 22:36
-
-
Save zekefast/0563f162e96561481704 to your computer and use it in GitHub Desktop.
Output example file during time execution. spec/spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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