spec/highrise/person_spec.rb in highrise-1.0.4 vs spec/highrise/person_spec.rb in highrise-1.2.0
- old
+ new
@@ -76,6 +76,19 @@
@person.untag!("cliente").should be_true
end
end
+ describe ".label" do
+ it "should return 'Party' for label" do
+ @person.label.should == 'Party'
+ end
+ end
+
+ describe ".add_note" do
+ it "should delegate to Highrise::Note.create with correct params" do
+ Highrise::Note.should_receive(:create).with({:body=>"body", :subject_id=>1, :subject_type=>'Party'}).and_return(mock('note'))
+ @person.add_note :body=>'body'
+ end
+ end
+
end