Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/journey/files: journey-1.0.4-fix-tests.patch
Date: Sun, 04 May 2014 13:07:05
Message-Id: 20140504130701.CC4B72004E@flycatcher.gentoo.org
1 mrueg 14/05/04 13:07:01
2
3 Added: journey-1.0.4-fix-tests.patch
4 Log:
5 Add patch to fix tests, add ruby20 and ruby21 support.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )
8
9 Revision Changes Path
10 1.1 dev-ruby/journey/files/journey-1.0.4-fix-tests.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/journey/files/journey-1.0.4-fix-tests.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/journey/files/journey-1.0.4-fix-tests.patch?rev=1.1&content-type=text/plain
14
15 Index: journey-1.0.4-fix-tests.patch
16 ===================================================================
17 From d836e960d9a20c4c5bc986630d2ba34a340959ea Mon Sep 17 00:00:00 2001
18 From: Aaron Patterson <aaron.patterson@×××××.com>
19 Date: Fri, 27 Jul 2012 11:20:58 -0700
20 Subject: [PATCH] fix assertion calls
21
22 ---
23 test/path/test_pattern.rb | 22 +++++++++++-----------
24 1 file changed, 11 insertions(+), 11 deletions(-)
25
26 diff --git a/test/path/test_pattern.rb b/test/path/test_pattern.rb
27 index c684a0a..ec93471 100644
28 --- a/test/path/test_pattern.rb
29 +++ b/test/path/test_pattern.rb
30 @@ -85,9 +85,9 @@ def test_to_regexp_with_extended_group
31 ["/", ".", "?"]
32 )
33 path = Pattern.new strexp
34 - assert_match('/page/tender', path)
35 - assert_match('/page/love', path)
36 - refute_match('/page/loving', path)
37 + assert_match(path, '/page/tender')
38 + assert_match(path, '/page/love')
39 + refute_match(path, '/page/loving')
40 end
41
42 def test_optional_names
43 @@ -108,8 +108,8 @@ def test_to_regexp_match_non_optional
44 ["/", ".", "?"]
45 )
46 path = Pattern.new strexp
47 - assert_match('/123', path)
48 - refute_match('/', path)
49 + assert_match(path, '/123')
50 + refute_match(path, '/')
51 end
52
53 def test_to_regexp_with_group
54 @@ -119,9 +119,9 @@ def test_to_regexp_with_group
55 ["/", ".", "?"]
56 )
57 path = Pattern.new strexp
58 - assert_match('/page/tender', path)
59 - assert_match('/page/love', path)
60 - refute_match('/page/loving', path)
61 + assert_match(path, '/page/tender')
62 + assert_match(path, '/page/love')
63 + refute_match(path, '/page/loving')
64 end
65
66 def test_ast_sets_regular_expressions
67 @@ -186,9 +186,9 @@ def test_insensitive_regexp_with_group
68 ["/", ".", "?"]
69 )
70 path = Pattern.new strexp
71 - assert_match('/page/TENDER/aaron', path)
72 - assert_match('/page/loVE/aaron', path)
73 - refute_match('/page/loVE/AAron', path)
74 + assert_match(path, '/page/TENDER/aaron')
75 + assert_match(path, '/page/loVE/aaron')
76 + refute_match(path, '/page/loVE/AAron')
77 end
78
79 def test_to_regexp_with_strexp
80 --
81 1.9.1