Sha256: ef0e7ed3466b15483f0cd834c73f511758510cc0e1a184b3deb0695a3b311d1c

Contents?: true

Size: 811 Bytes

Versions: 15

Compression:

Stored size: 811 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

15 entries across 15 versions & 1 rubygems

Version Path
wisepdf-1.2.6 test/helper_legacy_test.rb
wisepdf-1.2.5 test/helper_legacy_test.rb
wisepdf-1.2.4 test/helper_legacy_test.rb
wisepdf-1.2.3 test/helper_legacy_test.rb
wisepdf-1.2.2 test/helper_legacy_test.rb
wisepdf-1.2.1 test/helper_legacy_test.rb
wisepdf-1.2.0 test/helper_legacy_test.rb
wisepdf-1.1.3 test/helper_legacy_test.rb
wisepdf-1.1.2 test/helper_legacy_test.rb
wisepdf-1.1.1 test/helper_legacy_test.rb
wisepdf-1.1.0 test/helper_legacy_test.rb
wisepdf-1.0.3 test/helper_legacy_test.rb
wisepdf-1.0.2 test/helper_legacy_test.rb
wisepdf-1.0.1 test/helper_legacy_test.rb
wisepdf-1.0.0 test/helper_legacy_test.rb