Sha256: b103b7b1c314052e4d223e8611198a665cc5f1010de7892b629e711573a7e61d
Contents?: true
Size: 580 Bytes
Versions: 20
Compression:
Stored size: 580 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
20 entries across 20 versions & 4 rubygems