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: do not use require_relative in specs
Use instead require, and let the interpreter find the lib
The tests should not rely on the presence of the lib/ directory for
autopkgtest purposes.
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2015-05-02
--- a/spec/cell_spec.rb
+++ b/spec/cell_spec.rb
@@ -1,7 +1,7 @@
# encoding: utf-8
require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
-require_relative "../lib/prawn/table"
+require "prawn/table"
module CellHelpers
--- a/spec/table_spec.rb
+++ b/spec/table_spec.rb
@@ -6,7 +6,7 @@
require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
-require_relative "../lib/prawn/table"
+require "prawn/table"
require 'set'
describe "Prawn::Table" do
|