Sha256: de20ca610805d05cb6880c0cfe5a6fa3e0c2caea50e56e27c8accfbfa6b31bba

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

# (c) 2017 Ribose Inc.
#

# No point in using ApplicationRecord here.

require "spec_helper"

RSpec.describe AttrMasker::Maskers::Simple do
  subject { described_class.new }

  example { expect(subject.(value: "Solo")).to eq("(redacted)") }
  example { expect(subject.(value: Math::PI)).to eq("(redacted)") }
  example { expect(subject.(value: nil)).to eq("(redacted)") }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attr_masker-0.3.1 spec/unit/maskers/simple_spec.rb
attr_masker-0.3.0 spec/unit/maskers/simple_spec.rb
attr_masker-0.2.1 spec/unit/maskers/simple_spec.rb
attr_masker-0.2.0 spec/unit/maskers/simple_spec.rb