diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 09:18:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 09:18:12 +0000 |
commit | da43f785bea5ef7f8cc985358e8204ad0e0c7fdc (patch) | |
tree | fd2c3916d8d40db5495ff218811cd4ad1ee4611b /test | |
parent | 03335d014ceb42d8db670606e3960b5fd84cb7c3 (diff) | |
download | redmine-da43f785bea5ef7f8cc985358e8204ad0e0c7fdc.tar.gz redmine-da43f785bea5ef7f8cc985358e8204ad0e0c7fdc.zip |
Adds support for :plugin option to image_tag helper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9559 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index f09d66646..9bf25e605 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1054,6 +1054,14 @@ RAW assert_match 'href="/plugin_assets/foo/stylesheets/styles.css"', stylesheet_link_tag("styles", :plugin => :foo) end + def test_image_tag_should_pick_the_default_image + assert_match 'src="/images/image.png"', image_tag("image.png") + end + + def test_image_tag_sfor_plugin_should_pick_the_plugin_image + assert_match 'src="/plugin_assets/foo/images/image.png"', image_tag("image.png", :plugin => :foo) + end + def test_javascript_include_tag_should_pick_the_default_javascript assert_match 'src="/javascripts/scripts.js"', javascript_include_tag("scripts") end |