Created
July 9, 2013 15:02
-
-
Save greyblake/5958083 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
# Override some stuff to detect FacotoryGirl usage out of `it` | |
module RSpec | |
module Core | |
class ExampleGroup | |
class << self | |
# redefine to do nothing | |
def it(*args) | |
end | |
end | |
end | |
end | |
end | |
def FactoryGirl.create(*args) | |
puts "\n\n===" | |
puts "Crime detected" | |
puts caller[0] | |
puts "===\n\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment