Last active
August 29, 2015 14:12
-
-
Save grekko/ec782fbab42576dc55db to your computer and use it in GitHub Desktop.
RequireLib Helper for Rspec
This file contains hidden or 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
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 |
This file contains hidden or 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
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