Sha256: 626eee346f6683cadff4273c054c6880c0f7bbcc5a41627a77e71c240b792bd1

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

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

describe Highrise::Note do

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

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

  end
  
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
kmayer-highrise-0.11.0 spec/highrise/note_spec.rb
kmayer-highrise-0.11.1 spec/highrise/note_spec.rb
kmayer-highrise-0.12.0 spec/highrise/note_spec.rb
kmayer-highrise-0.13.0 spec/highrise/note_spec.rb
kmayer-highrise-0.8.0 spec/highrise/note_spec.rb
kmayer-highrise-0.8.1 spec/highrise/note_spec.rb
kmayer-highrise-0.9.0 spec/highrise/note_spec.rb
kmayer-highrise-0.9.1 spec/highrise/note_spec.rb
kmayer-highrise-0.9.2 spec/highrise/note_spec.rb
kmayer-highrise-1.0.1 spec/highrise/note_spec.rb
soleone-highrise-0.13.3 spec/highrise/note_spec.rb
highrise-1.0.4 spec/highrise/note_spec.rb
highrise-1.0.3 spec/highrise/note_spec.rb
highrise-1.0.2 spec/highrise/note_spec.rb