Codebase list ruby-gitlab / 488646b
Add a patch to use installed libraries in the tests Sophie Brun 6 years ago
2 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 drop-git-ls-files.patch
1 use-installed-libraries.patch
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