Skip to content

Commit

Permalink
fix regexp in test_plot for Ruby1.8
Browse files Browse the repository at this point in the history
The ordering of parameters with Ruby1.8 is not deterministic, because it
comes from a Hash. The previous regexps required two spaces between
'circle' and the other keyword, which does not work if the keyword comes
just after 'circle'.
  • Loading branch information
boutil committed Jul 3, 2013
1 parent 4b02cc2 commit 8f1255f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_plot.rb
Expand Up @@ -245,8 +245,8 @@ def test_popup_radius_is_10_by_default
})

out=graph.burn()
assert_match(/circle .* r='10'/, out)
assert_match(/circle .* onmouseover=.*/, out)
assert_match(/circle .*r='10'/, out)
assert_match(/circle .*onmouseover=.*/, out)

end
def test_popup_radius_is_overridable
Expand Down Expand Up @@ -275,8 +275,8 @@ def test_popup_radius_is_overridable
})

out=graph.burn()
assert_match(/circle .* r='1.23'/, out)
assert_match(/circle .* onmouseover=.*/, out)
assert_match(/circle .*r='1.23'/, out)
assert_match(/circle .*onmouseover=.*/, out)

end
end

0 comments on commit 8f1255f

Please sign in to comment.