Skip to content

Commit

Permalink
Fix that damn sparkline test
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.typosphere.org/typo/trunk@623 820eb932-12ee-0310-9ca8-eeb645f39767
  • Loading branch information
scott committed Sep 5, 2005
1 parent f6fdd5f commit fa742f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/textfilter_controller_test.rb
Expand Up @@ -104,9 +104,9 @@ def test_sparkline
assert_equal "<img alt=\"ccc\" src=\"http://test.host/plugins/filters/sparkline/plot?data=\"/>",
@controller.filter_text('<typo:sparkline alt="ccc"/>',[:macropre,:macropost])

assert_equal "<img src=\"http://test.host/plugins/filters/sparkline/plot?data=1%2C2%2C3%2C4&type=smooth\"/>",
@controller.filter_text('<typo:sparkline type="smooth" data="1 2 3 4"/>',[:macropre,:macropost])
tag = @controller.filter_text('<typo:sparkline type="smooth" data="1 2 3 4"/>',[:macropre,:macropost])
assert tag =~ %r{^<img src=\"http://test.host/plugins/filters/sparkline/plot\?(data=1%2C2%2C3%2C4|type=smooth|&)+\"/>}

assert_equal "<img src=\"http://test.host/plugins/filters/sparkline/plot?data=1%2C2%2C3%2C4%2C5%2C6\"/>",
@controller.filter_text('<typo:sparkline>1 2 3 4 5 6</typo:sparkline>',[:macropre,:macropost])
end
Expand Down

0 comments on commit fa742f3

Please sign in to comment.