Sha256: 6a9ce8ba4d4bce2a276fb9e63517e9ab6ca35d45aa430b70952323abf26f145c
Contents?: true
Size: 786 Bytes
Versions: 10
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true class FakeClass include ::FinApps::Utils::ParameterFilter end RSpec.describe FinApps::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
10 entries across 10 versions & 1 rubygems