[DRE-commits] [ruby-rbpdf] 03/03: rbpdf-font/test: test font path contents, not exact location
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Feb 14 15:56:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch patch-queue/master
in repository ruby-rbpdf.
commit a17b691c7ecf7bbfe33e5b924bdc82fbcbf20f04
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sat Jan 23 12:22:07 2016 -0200
rbpdf-font/test: test font path contents, not exact location
Gbp-Pq: Name 0003-rbpdf-font-test-test-font-path-contents-not-exact-lo.patch
---
rbpdf-font/test/rbpdf_font_file_test.rb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/rbpdf-font/test/rbpdf_font_file_test.rb b/rbpdf-font/test/rbpdf_font_file_test.rb
index 9593c5a..17a2f10 100644
--- a/rbpdf-font/test/rbpdf_font_file_test.rb
+++ b/rbpdf-font/test/rbpdf_font_file_test.rb
@@ -3,9 +3,7 @@ require 'test_helper'
class RbpdfFontFileTest < Test::Unit::TestCase
test "Font path test" do
font_path = RBPDFFontDescriptor.getfontpath
- exp_path = File.join File.dirname(__FILE__).gsub(/test$/, '') , 'lib', 'fonts'
-
- assert_equal exp_path, font_path
+ assert_include Dir.entries(font_path), 'courier.rb'
end
test "Core Font File test" do
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rbpdf.git
More information about the Pkg-ruby-extras-commits
mailing list