Sha256: c90c58a1188758bba4db2aa56ce1ccb77a70309d2debc164b9fd8376908ea13d

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 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(: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

11 entries across 11 versions & 1 rubygems

Version Path
highrise-3.2.3 spec/highrise/email_spec.rb
highrise-3.2.1 spec/highrise/email_spec.rb
highrise-3.1.6 spec/highrise/email_spec.rb
highrise-3.1.5 spec/highrise/email_spec.rb
highrise-3.1.2 spec/highrise/email_spec.rb
highrise-3.1.1 spec/highrise/email_spec.rb
highrise-3.1.0 spec/highrise/email_spec.rb
highrise-3.1.0.pre spec/highrise/email_spec.rb
highrise-3.0.5 spec/highrise/email_spec.rb
highrise-3.0.4 spec/highrise/email_spec.rb
highrise-3.0.3 spec/highrise/email_spec.rb