Add a patch to use installed libraries in the tests
Sophie Brun
6 years ago
0 | Description: Use installed libraries | |
1 | Author: Sophie Brun <sophie@freexian.com> | |
2 | Last-Update: 2017-09-21 | |
3 | --- | |
4 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
5 | --- a/spec/spec_helper.rb | |
6 | +++ b/spec/spec_helper.rb | |
7 | @@ -1,8 +1,9 @@ | |
8 | require 'rspec' | |
9 | require 'webmock/rspec' | |
10 | ||
11 | -require File.expand_path('../../lib/gitlab', __FILE__) | |
12 | -require File.expand_path('../../lib/gitlab/cli', __FILE__) | |
13 | +$:.unshift File.expand_path('../../lib', __FILE__) | |
14 | +require 'gitlab' | |
15 | +require 'gitlab/cli' | |
16 | ||
17 | def capture_output | |
18 | out = StringIO.new |