File: clean_spec_helper.patch

package info (click to toggle)
ruby-prawn-table 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 528 kB
  • ctags: 227
  • sloc: ruby: 3,355; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
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
28
29
30
Description: remove unneeded stuff from spec_helper file
 - remove call to bundler
 - remove test coverage
 - use path relative to LOAD_PATH instead of a require_relative to load
   prawn/table.rb
Author: C├ędric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2016-06-12

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,17 +2,8 @@
 
 puts "Prawn specs: Running on Ruby Version: #{RUBY_VERSION}"
 
-require "bundler"
-Bundler.setup
 
-if ENV["COVERAGE"]
-  require "simplecov"
-  SimpleCov.start do
-    add_filter "/spec/"
-  end
-end
-
-require_relative "../lib/prawn/table"
+require "prawn/table"
 
 Prawn.debug = true