Created
April 25, 2016 09:20
-
-
Save lorenzosinisi/745af08d273b6af76cc86578bfd68ee2 to your computer and use it in GitHub Desktop.
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
# How to find out when and where a method is called in Rspec | |
puts "CALLED :#{caller_locations(1,1)[0].label} at #{caller_locations[1]}".red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(you will need to install the gem colorized first