Sha256: b45004cc913ba921f89971772d5825f5f26ebead0f51910f016f452f6c78994d
Contents?: true
Size: 794 Bytes
Versions: 4
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true class FakeClass include ::FinAppsCore::Utils::ParameterFilter end RSpec.describe FinAppsCore::Utils::ParameterFilter do describe '#skip_sensitive_data' do context 'when provided with sensitive data' do let(:unfiltered_params) do {password: 'FinApps@123', password_confirm: 'FinApps@123', token: '123456', login: 'sammysosa', username: 'johnny', name: 'george'} end let(:filtered_params) do {password: '[REDACTED]', password_confirm: '[REDACTED]', token: '[REDACTED]', login: '[REDACTED]', username: '[REDACTED]', name: 'george'} end it 'filters out sensitive values' do expect(FakeClass.new.skip_sensitive_data(unfiltered_params)).to eq(filtered_params) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems