test/helper_legacy_test.rb in wisepdf-1.2.10 vs test/helper_legacy_test.rb in wisepdf-1.3.0
- old
+ new
@@ -3,23 +3,23 @@
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/
+ assert_match /Wisepdf styles/, wisepdf_stylesheet_tag('wisepdf').strip
end
should 'include stylesheet if .css extension is given' do
- assert_match wisepdf_stylesheet_tag('wisepdf.css').strip, /Wisepdf styles/
+ 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_tag('wisepdf').strip, /Wisepdf javascript/
+ assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf').strip
end
should 'include javascript if .js extension is given' do
- assert_match wisepdf_javascript_tag('wisepdf.js').strip, /Wisepdf javascript/
+ assert_match /Wisepdf javascript/, wisepdf_javascript_tag('wisepdf.js').strip
end
end
end