Sha256: b196e84da541c669cfdce1c2c0747fe4edabb20aeef62f7c4f5ad1cc4fd16b74

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe Highrise::Email do
  it { should be_a_kind_of Highrise::Base }

  it_should_behave_like "a paginated class"
  
  it "#comments" do
    subject.should_receive(:email_id).and_return(1)
    Highrise::Comment.should_receive(:find).with(:all, {:from=>"/emails/1/comments.xml"}).and_return("comments")
    subject.comments.should == "comments"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
peterosullivan-highrise-3.0.7 spec/highrise/email_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/email_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/email_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/email_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/email_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/email_spec.rb
highrise-3.0.1 spec/highrise/email_spec.rb
highrise-3.0.0 spec/highrise/email_spec.rb