Mercurial > hg > soundsoftware-site
view .svn/pristine/e7/e77ecc74553bd5c08ca184a88695f37ae32190fc.svn-base @ 1625:808a40a7cac7 live
Have a go at fixing #570 Can't delete downloadable file from version in project with no issue tracker
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2019 13:48:00 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
require File.dirname(__FILE__) + '/../test_helper' class ViewHelpersTest < ActionController::TestCase tests AssetsController def setup get :index end def test_plugin_javascript_helpers base_selector = "script[type='text/javascript']" js_dir = "/plugin_assets/test_assets/javascripts" assert_select "#{base_selector}[src='#{js_dir}/file.1.js']" assert_select "#{base_selector}[src='#{js_dir}/file2.js']" end def test_plugin_stylesheet_helpers base_selector = "link[media='screen'][rel='stylesheet'][type='text/css']" css_dir = "/plugin_assets/test_assets/stylesheets" assert_select "#{base_selector}[href='#{css_dir}/file.1.css']" assert_select "#{base_selector}[href='#{css_dir}/file2.css']" end def test_plugin_image_helpers assert_select "img[src='/plugin_assets/test_assets/images/image.png'][alt='Image']" end def test_plugin_layouts get :index assert_select "div[id='assets_layout']" end def test_plugin_image_submit_helpers assert_select "input[src='/plugin_assets/test_assets/images/image.png'][type='image']" end end