Sha256: 8a391560f5cd5a51afa8d242e62a198aa0840659ea8d7b0b3e46fc4d5c738abb
Contents?: true
Size: 657 Bytes
Versions: 26
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' RSpec.describe ActsAsScrubbable::Scrubbable do context "not scrubbable" do subject {NonScrubbableModel.new} describe "scrubbable?" do it 'returns false' do expect(subject.class.scrubbable?).to eq false end end end context "scrubbable" do subject {ScrubbableModel.new} describe "scrubbable?" do it 'returns false' do expect(subject.class.scrubbable?).to eq true end end describe "scrubbable_fields" do it 'returns the list of scrubbable fields' do expect(subject.scrubbable_fields.keys.first).to eq :first_name end end end end
Version data entries
26 entries across 26 versions & 1 rubygems