Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created March 2, 2010 17:21
Show Gist options
  • Save rlivsey/319696 to your computer and use it in GitHub Desktop.
Save rlivsey/319696 to your computer and use it in GitHub Desktop.
# how to test that this works?
# or would you even bother?
...
begin
require 'system_timer'
rescue LoadError
require 'timeout'
SystemTimer = Timeout
end
...
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'spec'
require 'webmock/rspec'
require 'something' # <--- it's already loaded here
require 'faker'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment