Sha256: a2124f652b7a92da540835a8c60a49bfe9eac242de64a60f13cd3f27cb475da1

Contents?: true

Size: 372 Bytes

Versions: 19

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'

describe Highrise::Note do
  subject { Highrise::Note.new(:id => 1) }
  
  it { should be_a_kind_of Highrise::Base }

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

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
highrise-3.2.3 spec/highrise/note_spec.rb
highrise-3.2.1 spec/highrise/note_spec.rb
highrise-3.1.6 spec/highrise/note_spec.rb
highrise-3.1.5 spec/highrise/note_spec.rb
highrise-3.1.2 spec/highrise/note_spec.rb
highrise-3.1.1 spec/highrise/note_spec.rb
highrise-3.1.0 spec/highrise/note_spec.rb
highrise-3.1.0.pre spec/highrise/note_spec.rb
highrise-3.0.5 spec/highrise/note_spec.rb
highrise-3.0.4 spec/highrise/note_spec.rb
highrise-3.0.3 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.7 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/note_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/note_spec.rb
highrise-3.0.1 spec/highrise/note_spec.rb
highrise-3.0.0 spec/highrise/note_spec.rb