Skip to content

Instantly share code, notes, and snippets.

@grekko
Last active August 29, 2015 14:12
Show Gist options
  • Save grekko/ec782fbab42576dc55db to your computer and use it in GitHub Desktop.
Save grekko/ec782fbab42576dc55db to your computer and use it in GitHub Desktop.
RequireLib Helper for Rspec
Gem::Specification.new do |s|
s.name = 'rspec-helpers-require_lib'
s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.author = 'Gregory Igelmund'
s.email = '[email protected]'
s.summary = 'requiring libs made easy'
s.description = 'requiring libs made eady'
s.files = ['rspec-helpers-require_lib.rb']
s.require_path = '.'
end
module RspecHelpers
def require_lib(file_name)
require_relative "../lib/#{file_name}"
end
end
extend RspecHelpers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment