Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created May 31, 2012 15:35
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 JohnMurray/2844201 to your computer and use it in GitHub Desktop.
Save JohnMurray/2844201 to your computer and use it in GitHub Desktop.
An example of what a repetitive Pry session _might_ look like
require 'bundler/setup'
bundler.require(:development, :test, :console)
$: << File.expand_path('../src', __FILE__)
require 'app'
require 'models/user_account'
require 'models/car'
# Load config and connect to DB
App.init()
def random_helper_method
# ... helpful code ...
end
# maybe some other random junk depending
# on what your testing at the moment
# FINALLY time to test!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment