[DRE-commits] [ruby-svg-graph] 01/01: fix unit test whitespace matching
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 patch-queue/master
in repository ruby-svg-graph.
commit 2ceb7dda1e485b9ac5f0f0d7e02b5330083596cf
Author: Dmitry Borodaenko <angdraug at gmail.com>
Date: Sat Aug 31 13:21:48 2013 -0700
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
--
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