Sha256: aa1a7bd69dea3a56742d88efe6486aac23c1352da2b63258083997186d589a1f

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Highrise::Email do

  before(:each) do
    @mail = Highrise::Email.new
  end
  
  it "should be instance of Highrise::Base" do
    @mail.kind_of?(Highrise::Base).should be_true
  end
  
  describe "comments" do

    it "should delegate to Highrise::Comment.find with correct params" do
      @mail.should_receive(:email_id).and_return(1)
      Highrise::Comment.should_receive(:find).with(:all, {:from=>"/emails/1/comments.xml"}).and_return("comments")
      @mail.comments.should == "comments"
    end

  end
  


end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
kmayer-highrise-0.7.0 spec/highrise/email_spec.rb
kmayer-highrise-0.7.1 spec/highrise/email_spec.rb
slainer68-highrise-0.6.1 spec/highrise/email_spec.rb
slainer68-highrise-0.6.2 spec/highrise/email_spec.rb
slainer68-highrise-0.6 spec/highrise/email_spec.rb
tapajos-highrise-0.6 spec/highrise/email_spec.rb
tapajos-highrise-0.8.0 spec/highrise/email_spec.rb