Sha256: 0c40912374eb5c0c757be0a5d6f779c407c3f5384c55693281f9538d8f58fdad
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
require "test_helper" module ThemesForRails class ViewHelpersTest < ActionController::IntegrationTest include ThemesForRails::ViewHelpers include ActionView::Helpers::AssetTagHelper include ERB::Util include ActionView::Helpers::TagHelper def theme_name 'default' end def config @config ||= stub({:perform_caching => false, :asset_path => "/assets", :asset_host => ''}) end should 'delegate to stylesheet_link_tag' do assert theme_stylesheet_link_tag('cuac.css').include?('media="screen"') end should 'delegate options (lazy testing, I know)' do assert theme_stylesheet_link_tag('cuac.css', :media => 'print').include?('media="print"') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
themes_for_rails-0.4.0 | test/view_helpers_test.rb |