File: clean_spec_helper.patch

package info (click to toggle)
ruby-pdf-core 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 352 kB
  • sloc: ruby: 1,932; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: clean spec helper file
  - do not use bundler in specs
  - use require with abstract path instead of require_relative to load pdf/core
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2018-09-30

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,15 +2,7 @@
 
 puts "PDF::Core specs: Running on Ruby Version: #{RUBY_VERSION}"
 
-require 'bundler'
-Bundler.setup
-
-if ENV['COVERAGE']
-  require 'simplecov'
-  SimpleCov.start
-end
-
-require_relative '../lib/pdf/core'
+require 'pdf/core'
 
 require 'rspec'
 require 'pdf/reader'