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

Version Path
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/loofah-2.4.0/test/unit/test_scrubbers.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/loofah-2.4.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.3.1/test/unit/test_scrubbers.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.4.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.3.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/loofah-2.2.3/test/unit/test_scrubbers.rb
loofah-2.4.0 test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.3.1/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.3.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/loofah-2.2.3/test/unit/test_scrubbers.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/loofah-2.3.1/test/unit/test_scrubbers.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/loofah-2.3.1/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.2.3/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.3.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/loofah-2.3.1/test/unit/test_scrubbers.rb
loofah-2.3.1 test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/loofah-2.3.0/test/unit/test_scrubbers.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/loofah-2.2.3/test/unit/test_scrubbers.rb
loofah-2.3.0 test/unit/test_scrubbers.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/loofah-2.2.3/test/unit/test_scrubbers.rb