Sha256: c399b34d3bb40c666bcaf9934ecc0384cc9201699829a6ddbe5d2756a36f5ff8
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
share_as :Callbacks do context "callbacks" do before(:each) do @class.acts_as_icontact :list => "First Test", :surname => :lastName @person = @class.new(:firstName => "John", :surname => "Smith", :email => "john@example.org") end it "will create a new contact after record creation" do # ActsAsIcontact::Contact.any_instance.expects(:save).returns(true) @person.save end it "updates the Person with the results of the contact save" do @person.save @person.icontact_id.should == 333444 end end end
Version data entries
4 entries across 4 versions & 2 rubygems