Sha256: 8edd43d205941756c82ad15a1e4d795d5df81d02bdc1499aaff2462e4b9f6f87

Contents?: true

Size: 792 Bytes

Versions: 3

Compression:

Stored size: 792 Bytes

Contents

require 'helper'

class AssetsHelperTest < ActionView::TestCase
  include Wisepdf::Helper::Assets

  context "wisepdf_stylesheet_tag" do
    should 'include stylesheet if no extension is given' do
      assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf').strip
    end

    should 'include stylesheet if .css extension is given' do
      assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf.css').strip
    end
  end

  context "wisepdf_javascript_tag" do
    should 'include javascript if no extension is given' do
      assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf').strip
    end

    should 'include javascript if .js extension is given' do
      assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf.js').strip
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wisepdf-1.4.0 test/helper_assets_test.rb
wisepdf-1.3.1 test/helper_assets_test.rb
wisepdf-1.3.0 test/helper_assets_test.rb