Sha256: 5bf102a19557f07f688cfee3c9d6cd1a3dab74b0f4674fbb9c85d6e96c56df9a
Contents?: true
Size: 545 Bytes
Versions: 6
Compression:
Stored size: 545 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Highrise::Deal do before(:each) do @deal = Highrise::Deal.new(:id => 1) end it "should be instance of Highrise::Subject" do @deal.kind_of?(Highrise::Subject).should be_true 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=>'Deal'}).and_return(mock('note')) @deal.add_note :body=>'body' end end end
Version data entries
6 entries across 6 versions & 2 rubygems