Sha256: 2ef69be0fca6d9b51570fd0a632c33f8b68907fa2f50a3eb0b7548730c0dd4c3

Contents?: true

Size: 509 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
toadhopper-1.0.2 test/test_notice_document_data.rb
toadhopper-1.0.1 test/test_notice_document_data.rb
toadhopper-1.0.0 test/test_notice_document_data.rb