Sha256: d1719701879a860c23eb1a867f8ee645f3655f3fff5af81eaa749055b04c7e5e

Contents?: true

Size: 364 Bytes

Versions: 48

Compression:

Stored size: 364 Bytes

Contents

# encoding: UTF-8

require "spec_helper"

describe Timber::Events::ControllerCall, :rails_23 => true do
  describe ".initialize" do
    it "sanitizes the password param" do
      event = described_class.new(controller: 'controller', action: 'action', params: {password: 'password'})
      expect(event.params).to eq({'password' => '[sanitized]'})
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
timber-2.6.2 spec/timber/events/controller_call_spec.rb
timber-2.6.1 spec/timber/events/controller_call_spec.rb
timber-2.6.0 spec/timber/events/controller_call_spec.rb
timber-2.6.0.pre.beta2 spec/timber/events/controller_call_spec.rb
timber-2.6.0.pre.beta1 spec/timber/events/controller_call_spec.rb
timber-2.5.1 spec/timber/events/controller_call_spec.rb
timber-2.5.0 spec/timber/events/controller_call_spec.rb
timber-2.4.0 spec/timber/events/controller_call_spec.rb
timber-2.3.4 spec/timber/events/controller_call_spec.rb
timber-2.3.3 spec/timber/events/controller_call_spec.rb
timber-2.3.2 spec/timber/events/controller_call_spec.rb
timber-2.3.1 spec/timber/events/controller_call_spec.rb
timber-2.3.0 spec/timber/events/controller_call_spec.rb
timber-2.2.3 spec/timber/events/controller_call_spec.rb
timber-2.2.2 spec/timber/events/controller_call_spec.rb
timber-2.2.1 spec/timber/events/controller_call_spec.rb
timber-2.2.0 spec/timber/events/controller_call_spec.rb
timber-2.1.10 spec/timber/events/controller_call_spec.rb
timber-2.1.9 spec/timber/events/controller_call_spec.rb
timber-2.1.8 spec/timber/events/controller_call_spec.rb