Skip to content

Instantly share code, notes, and snippets.

@deepak
Created May 1, 2014 10:49
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 deepak/aefd141e412bc6a9f8a4 to your computer and use it in GitHub Desktop.
Save deepak/aefd141e412bc6a9f8a4 to your computer and use it in GitHub Desktop.
Disable pry for tests
# no pry in test environment but works otherwise
class Binding
def pry; nil; end
def remote_pry; nil; end
end
__END__
for finding a bug sometimes i will try it out in the browser
and set breakpoints in the code and javascript console
having spent that time
can disable in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment