Sha256: 5ae7111bc58e08f1fa39aec2f430102c964096cbf4ba1da59fb9a487e4b35914

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

class ToadHopper::TestNoticeDocument < Test::Unit::TestCase
  def test_filtering
    toadhopper.filters = "password"
    sensitive_options = {
      :params      => {"password" => "sensitive"},
      :session     => {"password" => "sensitive"},
      :environment => {"password" => "sensitive"}
    }
    notice_document = toadhopper.document_for(error, sensitive_options)
    assert_false notice_document.include?("sensitive")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toadhopper-0.9.8 test/test_notice_document_data.rb