Sha256: 405e1288032f22a995d5aefe208bc42936222395619181b520b61d286dcd4e3e
Contents?: true
Size: 402 Bytes
Versions: 60
Compression:
Stored size: 402 Bytes
Contents
require "helper" class UnitTestScrubbers < Loofah::TestCase [ Loofah::HTML::Document, Loofah::HTML::DocumentFragment ].each do |klass| context klass do context "bad scrub method" do it "raise a ScrubberNotFound exception" do doc = klass.parse "<p>foo</p>" assert_raises(Loofah::ScrubberNotFound) { doc.scrub! :frippery } end end end end end
Version data entries
60 entries across 52 versions & 14 rubygems