Skip to content

Instantly share code, notes, and snippets.

@cohitre
Created February 17, 2011 23:48
Show Gist options
  • Save cohitre/832997 to your computer and use it in GitHub Desktop.
Save cohitre/832997 to your computer and use it in GitHub Desktop.
class String; def pbcopy; `echo "#{self}" | pbcopy`; end; end
def require_factory_girl
gem 'factory_girl'
require 'factory_girl'
require 'spec/factories/batches'
Dir.glob('spec/factories/*.rb').each do |f|
require f
end
require 'spec/spec_helper'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment