[DRE-commits] [ruby-svg-graph] 01/02: fix intermittent unit test failure #713168

Dmitry Borodaenko angdraug at alioth.debian.org
Sat Aug 31 20:33:56 UTC 2013


This is an automated email from the git hooks/post-receive script.

angdraug pushed a commit to branch master
in repository ruby-svg-graph.

commit 1a54ecef2e7ed939f44b861a16013ab09758d4df
Author: Dmitry Borodaenko <angdraug at gmail.com>
Date:   Sat Aug 31 13:27:15 2013 -0700

    fix intermittent unit test failure #713168
---
 .../0001-fix-unit-test-whitespace-matching.patch   |   38 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 2 files changed, 39 insertions(+)

diff --git a/debian/patches/0001-fix-unit-test-whitespace-matching.patch b/debian/patches/0001-fix-unit-test-whitespace-matching.patch
new file mode 100644
index 0000000..a6c780b
--- /dev/null
+++ b/debian/patches/0001-fix-unit-test-whitespace-matching.patch
@@ -0,0 +1,38 @@
+From: Dmitry Borodaenko <angdraug at gmail.com>
+Date: Sat, 31 Aug 2013 13:21:48 -0700
+Subject: fix unit test whitespace matching
+
+Element attributes are ordered arbitrary on each test run, when the
+attribute being matched is the first in the list, it is separated from
+element name only by a single space, making the test fail
+intermittently.
+---
+ test/test_plot.rb | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/test/test_plot.rb b/test/test_plot.rb
+index d7417ca..aa0d193 100644
+--- a/test/test_plot.rb
++++ b/test/test_plot.rb
+@@ -245,8 +245,8 @@ class TestSvgGraphPlot < Test::Unit::TestCase
+     })
+ 
+     out=graph.burn()
+-    assert_match(/circle .* r='10'/, out)
+-    assert_match(/circle .* onmouseover=.*/, out)
++    assert_match(/circle\b.*\br='10'/, out)
++    assert_match(/circle\b.*\bonmouseover=.*/, out)
+     
+   end
+   def test_popup_radius_is_overridable
+@@ -275,8 +275,8 @@ class TestSvgGraphPlot < Test::Unit::TestCase
+     })
+ 
+     out=graph.burn()
+-    assert_match(/circle .* r='1.23'/, out)
+-    assert_match(/circle .* onmouseover=.*/, out)
++    assert_match(/circle\b.*\br='1.23'/, out)
++    assert_match(/circle\b.*\bonmouseover=.*/, out)
+     
+   end
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6c75ab6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-unit-test-whitespace-matching.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-svg-graph.git



More information about the Pkg-ruby-extras-commits mailing list