spec/unit/encrypted_model_spec.rb in vault-rails-0.5.0 vs spec/unit/encrypted_model_spec.rb in vault-rails-0.6.0

- old
+ new

@@ -40,12 +40,11 @@ klass.vault_attribute(:foo) expect(klass.instance_methods).to include(:foo?) end it "defines dirty attribute methods" do - klass.vault_attribute(:foo) - expect(klass.instance_methods).to include(:foo_change) - expect(klass.instance_methods).to include(:foo_changed?) - expect(klass.instance_methods).to include(:foo_was) + expect(Person.new).to respond_to(:ssn_change) + expect(Person.new).to respond_to(:ssn_changed?) + expect(Person.new).to respond_to(:ssn_was) end end end