spec/unit/maskers/simple_spec.rb in attr_masker-0.1.1 vs spec/unit/maskers/simple_spec.rb in attr_masker-0.2.0

- old
+ new

@@ -3,11 +3,11 @@ # No point in using ApplicationRecord here. require "spec_helper" -RSpec.describe AttrMasker::Maskers::SIMPLE do - subject { described_class } +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