File: clean_spec_helper.patch

package info (click to toggle)
ruby-pdf-core 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 296 kB
  • ctags: 224
  • sloc: ruby: 1,616; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 571 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: 2014-09-28

--- 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"