Sha256: df3d9a220f2a0986ee5a2eb4cf4b611aa9d7ccbac811958a6b6d125d9ba1a128

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

require 'helper'

class LegacyHelperTest < ActionView::TestCase
  include Wisepdf::Helper::Legacy

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wisepdf-1.2.10 test/helper_legacy_test.rb
wisepdf-1.2.9 test/helper_legacy_test.rb
wisepdf-1.2.8 test/helper_legacy_test.rb
wisepdf-1.2.7 test/helper_legacy_test.rb