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

Version Path
rogerio-augusto-highrise-2.0.4 spec/highrise/deal_spec.rb
rogerio-augusto-highrise-2.0.3 spec/highrise/deal_spec.rb
rogerio-augusto-highrise-2.0.2 spec/highrise/deal_spec.rb
highrise-2.0.1 spec/highrise/deal_spec.rb
highrise-2.0.0 spec/highrise/deal_spec.rb
highrise-1.2.0 spec/highrise/deal_spec.rb