Created
December 2, 2013 02:59
-
-
Save cherring/7744329 to your computer and use it in GitHub Desktop.
Binding.pry example
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
group :test, :development do | |
gem "pry" | |
gem "pry-rails" # Assuming you are using rails | |
end |
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
it "should do a thing" do | |
# do shiz | |
binding.pry # Will stop and give you a prompt and you can poke around | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment